Developing with local Carthage dependency - my-swift-lab/firefox-ios GitHub Wiki
- checkout the dependency locally (outside of the main source tree)
- change Cartfile to have
git "file:///Users/path/to/above/checkout" "master"
(whatever branch you are working on from step one) - confirm if this step is needed: change Cartfile.resolved SHA for above lib to point to head of branch
- symlink from Carthage/Checkouts/libname to the directory from the first step
carthage build <libname> --platform ios --configuration Debug
- modify Client target to add a 'copy files' build phase to copy to 'Products Directory', and drag
Carthage/Build/iOS/libname.framework.dSYM
to the file list
Local source modifications should now be reflected after each carthage build
step.
TIP: Add a
raise(SIGINT)
or similar to your local sources of the lib in development to confirm your local modifications are being picked up.