Skip to content

Instantly share code, notes, and snippets.

@radiospiel
Created March 9, 2012 22:41
Show Gist options
  • Save radiospiel/2009100 to your computer and use it in GitHub Desktop.
Save radiospiel/2009100 to your computer and use it in GitHub Desktop.
How I use Cocoapod locally
  1. 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
  1. 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

  2. Update references in target project.

    rm -rf Pods/ pod install

@kumarkalluri
Copy link

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

@philosopherdog
Copy link

@bluealert Your solution worked in the latest cocoapods and xcode. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment