Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
377 views
in Technique[技术] by (71.8m points)

ios - Carthage fetches and builds repository that is not in my Cartfile

FYI Xcode 12.3, Mac M1.

When I run the Carthage command carthage update --platform iOS, Carthage fetches a repository that is not in the Cartfile. Can you please explain why?

To debug this I've uninstalled Carthage, cleaned cache etc, then reinstalled.

The following is a terminal log showing details. Note the Cartfile, shown below, does not contain CocoaLumberjack but Carthage still fetches it. Note that in a previous version of the Cartfile Cocoalumberjack was included.

paul@Pauls-Mac-mini nannup % brew uninstall carthage
Uninstalling /opt/homebrew/Cellar/carthage/0.36.1... (8 files, 7.4MB)
paul@Pauls-Mac-mini nannup % brew uninstall --force carthage
paul@Pauls-Mac-mini nannup % sudo rm -rf ~/Library/Caches/carthage     
Password:
paul@Pauls-Mac-mini nannup % ls -al /usr/local/bin/Cathage 
ls: /usr/local/bin/Cathage: No such file or directory
paul@Pauls-Mac-mini nannup % brew install carthage
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/carthage-0.36.1.arm64_big_sur.bottle.tar.gz
Already downloaded: /Users/paul/Library/Caches/Homebrew/downloads/3bafbfa7dcc8f2622063f9e7fdd0120c68f04fc5efa14d5bbd2f49695b9b011c--carthage-0.36.1.arm64_big_sur.bottle.tar.gz
==> Pouring carthage-0.36.1.arm64_big_sur.bottle.tar.gz
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
==> Summary
??  /opt/homebrew/Cellar/carthage/0.36.1: 8 files, 7.4MB
paul@Pauls-Mac-mini nannup % xcodebuild -version
Xcode 12.3
Build version 12C33

paul@Pauls-Mac-mini nannup % cat Cartfile
github "devxoul/Toaster" == 2.3.0
github "SVGKit/SVGKit" "3.x"

paul@Pauls-Mac-mini nannup % rm -rf Carthage 
paul@Pauls-Mac-mini nannup % rm -rf Cartfile.resolved 
paul@Pauls-Mac-mini nannup % ls       
Cartfile        Nannup          Nannup.xcodeproj    T-Nannup        carthage.sh     contributors.txt    libs
paul@Pauls-Mac-mini nannup % carthage update --platform iOS
*** Fetching Toaster
*** Fetching SVGKit
*** Fetching CocoaLumberjack
*** Checking out CocoaLumberjack at "3.7.0"
*** Checking out SVGKit at "11b6d774d2710a8b1c0493146be5d56e56961946"
*** Checking out Toaster at "2.3.0"

Why is a repo not in the Cartfile being fetched?

question from:https://stackoverflow.com/questions/65931711/carthage-fetches-and-builds-repository-that-is-not-in-my-cartfile

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Dumb question - SVGKit has a dependency on CocoaLumberjack


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...