- 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 am trying to execute pod in offline, for that i downloaded spec-master and followed your mentioned procedure like
pod repo add master ~/.cocoapods/Spec-master
Getting below error
To setup the master specs repo, please run
pod setup