Error starting pod install

When I run the pod install command, I get the following error:

 [!] The `master` repo requires CocoaPods 1.0.0 -  (currently using 0.39.0) Update Cocoapods, or checkout the appropriate tag in the repo. 

Currently updating is not an option for me.

I looked at the answers to this question , but none of the solutions seemed to work for me.

How can I continue to use CocoaPods 0.39.0 for dependency management?

+7
cocoapods
source share
4 answers

Cocoapods ran into speed limits in March and implemented shards to avoid this problem in the future. There is a blog post here .

To fix this, you can either upgrade version 1.x of Cocoapods, or add a new source to the top of your subfile:

 source "https://github.com/CocoaPods/Old-Specs" 

You will probably need to replace another source string.


If you are having problems, probably due to the fact that a particular module does not have the specification available in the source source that you are currently using. I ran into this problem with the Apptentive SDK . You can specify the source for a separate library in your signatures:

 pod 'apptentive-ios', :git => 'https://github.com/apptentive/apptentive-ios.git', :tag => 'v3.0.0' 

Just update :git and :tag with the correct values.

For a Github project, it might be easiest to look at the Releases page of any library you are looking for to find the tag you want for a particular version.

+10
source share

Write the following command in terminal

 sudo gem install -n /usr/local/bin cocoapods 
+2
source share

First, in the Podfile, replace the https://github.com/CocoaPods/Specs "source with" source " https://github.com/CocoaPods/Old-Specs "

Navigate to the root folder of the workspace using the following command:

 cd <path to your workspace> Pod install 

If this does not work, try the following steps after completing the following steps.

In the terminal, do the following:

 gem list --local | grep cocoapods 

You see a result similar to this:

 cocoapods (0.27.1, 0.20.2) cocoapods-core (0.27.1, 0.20.2) cocoapods-downloader (0.2.0, 0.1.2) 

now for the safer side, remove all local modules using the following command:

 sudo gem uninstall cocoapods sudo gem uninstall cocoapods-core sudo gem uninstall cocoapods-downloader 

safe side cocoa pods removal version 0.39.0

 sudo gem uninstall cocoapods -v 0.39.0 

reinstall cocoa pods version 0.39.0

 sudo gem install cocoapods -v 0.39.0 

Then run the commands in the terminal:

 cd <path to your workspace> pod install (this time it would fail again, but that fine) cd ~/.cocoapods/repos git clone https://github.com/CocoaPods/Specs.git cd specs git checkout v0.32.1 

Navigate to the root folder of the workspace using the following command:

 cd <path to your workspace> 

run the commands below:

 rm -rf Pods rm -rf Podfile.lock pod install (this time you should be able to see it working) 
0
source share

Hi, I tried all the answers, but nothing worked. Finally, I tried these steps in the terminal.

 1- Open Terminal 2- cd < Your Project File Location> 3- sudo gem install cocoapods --pre 4- pod setup 5- touch podfile 6- pod install 
0
source share

All Articles