- Preparation
Setup a local CocoaPods directory, and register it with CocoaPods
mkdir -p ~/CocoaPods/Local
(cd ~/CocoaPods/Local; git init)
pod repo add ~/CocoaPods/Local
-
Update local CocoaPod
Whenever you have a local version you want to use in some other project, use the update-localpod script to update the local CocoaPod. It runs through all podspec files, and installed a version which points to the local repository instead of the remote.
See this script: https://gist.github.com/2009088
-
Update references in target project.
rm -rf Pods/ pod install
I think the local option is deprecated :/ I just tried this...
pod 'NewPod', :local => "../"
and it gives me this warning...
[!] The
:local
option of the Podfile has been renamed to:path
and is deprecated.Cocoapods 0.29.0