carthage-workarounds
carthage-workarounds copied to clipboard
Shell scripts to make life a little easier when using Carthage.
#Carthage Workarounds Shell scripts to make life a little easier when using Carthage.
Check my article Saving precious time when building Carthage dependencies.
##carthage-build.sh Workaround for Carthage to avoid rebuilding all your dependencies every time you want to add a new one to your Cartfile.
- [x] Builds a single dependency using Carthage and merges it with the existing ones.
- [x] Updates your Cartfile with the new dependency.
##Usage
Run carthage-build from the same directory where you have your Cartfile/Carthage directory:
./carthage-build.sh --dependency 'github "ruipfcosta/SwiftyWalkthrough"'
The default carthage command used to build the dependencies is carthage update --no-use-binaries --platform iOS
. If that doesn't suit your needs you can specify the command when running the script:
./carthage-build.sh --dependency 'github "ruipfcosta/SwiftyWalkthrough"' --command "carthage update"
For a more permanent solution you can simply edit the value of the variable DEFAULT_COMMAND
.
Credits
Owned and maintained by Rui Costa (@ruipfcosta).
Contributing
Bug reports and pull requests are welcome.
License
Carthage-Workarounds is released under the MIT license. See LICENSE for details.