My Cartfile has many libraries. When I do carthage update
it goes through all the libraries. That can take very long time.
Is there a way to update just a s
Swift 5
//MARK:- Step 1
carthage update KeychainAccess --platform iOS
carthage update SDKNAME(like i mention KeychainAccess upper) --platform iOS
if you face an Error like this
//MARK:- If this error occur
error: unable to find utility "xcodebuild", not a developer tool or in PATH
Then use Part 1 in Terminal Again
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
and again
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
From 0.12 version build
, checkout
, and update
take an optional space separated list of dependencies
For a Cartfile like the following
github "Alamofire/Alamofire"
github "ReactiveX/RxSwift"
You could choose to update one dependency
carthage update Alamofire
or multiple dependencies
carthage update Alamofire RxSwift
If you need to add flags, add them last:
carthage update Alamofire --platform iOS
[carthage update flow]
carthage [update|bootstrap|checkout|build] [dependency1] [dependency2] [--no-use-binaries] [--platform <name>]
//--no-use-binaries - does not use prebuild binary and use source code
//--platform - specify a platform
The longest phase is a build
step[xcodebuild] because:
fat binary
is built using lipo
[About]Carthage builds all shared frameworks schemes
of a project. If you know which exactly schema which you need you can:
Leave specific schemes at xcschemes
folder .../Carthage/Checkouts/<dependency>/<project>.xcodeproj/xcshareddata/xcschemes/<schema>.xcscheme
Open built project from Carthage/Checkouts
folder -> Manage Schemes... -> leave specific schemes