- 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 just randomly found this.... And thought I should comment...
You can point to local pods by setting up your Podfile like this:
pod 'MyPod', :local => "/Path/To/Pod"
Wait... Now that I look at it.. You requested this feature and it was added :D
CocoaPods/CocoaPods#156