Home / Programming /
carthage update (or carthage bootstrap if working from an existing project)
--platform
ios, tvos, macOS, watchos (comma separated, no spaces if needing more than one)--cache-builds
--no-use-binaries
if you are doing iOS, these are your instructions (for macOS skip to the next step):
In Xcode, for each target, add a Run Script build phase
Run Script - Carthageput the following in script portion:
/usr/local/bin/carthage copy-frameworks
/usr/local/bin/carthage outdated --xcode-warnings
Carthage/Build/*/[frameworksHere] )
$(SRCROOT)/Carthage/Build/iOS/[frameworkNameNoBrackets].framework$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/[frameworkNameNoBrackets].frameworkCarthage/Build/[build platform]/[frameworksHere] to the Linked Frameworks and Libraries section
carthage update to finish first) Build your project to make sure everything is working rightCarthage/Build folder into the macOS build target's Embedded Binaries.Sharedcarthage build --no-skip-current in the project directory to confirm everything builds fineMore information is available here.
this document last modified: March 24 2020 00:34
Home / Programming /