This question already has answers here:
podfile gives an error on install
(3 answers)
Closed 9 years ago.
I tried to update cocoapods gem with command sudo gem install cocoapods. After few minutes on installation I saw Successfully installed cocoapods-0.29.0. But when I type pod --version got 0.27.1 again. Moreover when I try pod install terminal shows me this error:
[!] Pod::Executable pull
A ALPValidator/0.0.1/ALPValidator.podspec
A Apptimize/1.5.8/Apptimize.podspec
A BloodMagic/0.5.2/BloodMagic.podspec
U CardIO/3.2.2/CardIO.podspec
U CardIO/3.3.0/CardIO.podspec
U CardIO/3.4.0/CardIO.podspec
U CardIO/3.4.3/CardIO.podspec
...
How can I solve this problem?
On January 28 the Cocoapods Specs repo broke -- here's the full explanation and fix:
A bug was found in libgit2 and they had to execute a force push on the specs repo in order to fix the issue. This is what broke everyone CocoaPods setup.
You can find the details on what to do here.
Meanwhile you can use this quick fix :
rm -rf ~/.cocoapods/
pod setup
Related
I'm using Macbook pro-2020 apple M1 Chip, I have created a new ReactNative project and it runs fine on the simulator but if i have to install any other plugins, and have to install pods. it gives me errors like this.
i have installed all the requirements app running fine but once it comes pod installs it fails each and every time. any help would be much appericiated.
I believe this has been answered in how-to-running-cocoapods-on-apple-silicon-m1
I recommend following the updated answer for 2022. If you haven't already, use Homebrew, even tho it's not recommended by the maintainers. M1 with ARM architecture is amazing but many libraries are still not compatible and need to be run in x86 mode.
I would uninstall everything, including and gems you used originally, and run the following Homebrew commands and link them all....
brew install node
brew install yarn
brew install cocoapods
Reinstalling those should now work when you run pod install inside your ios file. This is what worked for me. Hope this helps.
I was facing the same error, this is what worked for me:
I first reinstalled the node, yarn, CocoaPods, after that I run the following commands:
brew link cocoapods
If still gives you error, remove old linked pod using following command:
rm '/opt/homebrew/bin/pod'
Now run this command again:
brew link cocoapods
Once the above command works successfully, then move to your project's iOS folder and run the following command:
pod install
I used Cocoapods a lot, but recently whenever I was updating the pods (pod update), it started duplicating files and often didn't let me create a build for the App Store.
I updated Cocoapods to the last version possible but still didn't solve that. Then I tried to remove and re-install it.
Now is occurring another issue. When I try to run pod install on any project, pods are not getting installed like previously, but is showing this error:
myUser$ pod install
Analyzing dependencies
[!] Couldn't determine repo type for URL: `https://github.com/CocoaPods/Specs.git`: Permission bits for '/Users/myUser/.netrc' should be 0600, but are 644
Previously, this never happened, but now it's happening even on projects that Cocoapods worked like a charm. What could be the problem?
Thank you in advance.
The error message says there's a permission issue:
Permission bits for '/Users/myUser/.netrc' should be 0600, but are 644
So in order to fix the permission, you should do this:
chmod 600 ~/.netrc
Then try to run pod install again. If the root cause was really this permissions issue then everything should work.
In addition to 0xced's answer: Check and fix possible syntax errors in ~/.netrc .
I recently tried to setup Google Firebase Analytics for my Unity game. I am building it for iOS exclusively. I have not been able to get Firebase working unfortunately.
I am using Xcode 8.1, OSX 10.12.1, and Unity 5.5.0f3
Whenever I try to build to iOS from Unity, I get this error in console:
Error running cocoapods. Please ensure you have at least version 1.0.0. You can install cocoapods with the Ruby gem package manager:
sudo gem install -n /usr/local/bin cocoapods
pod setup
'pod --version' returned status: 127
output:
UnityEngine.Debug:LogError(Object)
Google.IOSResolver:Log(String, Boolean, LogLevel)
Google.IOSResolver:OnPostProcessInstallPods(BuildTarget, String)
UnityEditor.HostView:OnGUI()
I have tried just about every suggestion I could find online. I have installed Cocoapods version 1.1.1, and later I tried the beta version 1.2.0.beta.1, nothing has worked.
Typing "which pod" in my terminal yields: /usr/local/bin/pod
Typing "pod --version" in my terminal yields the correct version number (i.e.: 1.2.0.beta.1)
I cannot get this build to work in my game's project, or a completely empty project to which I just imported firebase and tried to build.
I also tried to get this working with the sample project at the following link with no success: https://github.com/firebase/quickstart-unity
I am out of ideas here... can anyone help?
Much appreciated!
Firebase engineer here.
The code reporting the error is here:
https://github.com/googlesamples/unity-jar-resolver/blob/b7a90e43d6c893622102ca53681f53a58dab1a24/source/IOSResolver/src/IOSResolver.cs#L760
unfortunately, it looks like we're not logging the stderr stream so it's tricky to see how this is failing.
It sounds like your pod tool is returning a non-zero error code, not sure why. For example, on my machine I see the following:
$ which pod
/usr/local/bin/pod
$ pod --version ; echo $?
1.1.1
0
As you can see "pod --version" is returning "0" (success).
Similarly, pulling the latest Cocoapods tool from github https://github.com/CocoaPods/CocoaPods yields:
cd CocoaPods
export RUBYLIB=$(cd lib ; pwd)
export COCOAPODS_NO_BUNDLER=1
$ ./bin/pod --version ; echo $?
1.2.0.beta.1
0
Where the same thing is happening, the pod tool is returning a success exit code.
Things to try:
Contact support#firebase.google.com - we'll be able to work directly with you to diagnose and resolve this issue.
Try changing your LANG variable, we've been tripped up by this code https://github.com/CocoaPods/CocoaPods/blob/8db5956/bin/pod#L3 in the past. It's supposed to be handled by https://github.com/googlesamples/unity-jar-resolver/blob/b7a90e4/source/IOSResolver/src/IOSResolver.cs#L743 but you never know.
If you feel brave, build https://github.com/googlesamples/unity-jar-resolver/ yourself (you should be able to run ./gradlew in the root directory to build the DLLs) then you can add the stderr reporting, post / diagnose the error you're running into.
Cheers,
Stewart
If you have this error in your output:
Failed to extract git version from `git --version` ("xcrun: error: active developer path (\"/Applications/Xcode.app/Contents/Developer\") does not exist\nUse `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.\nSee `man xcode-select` for more details.\n") (RuntimeError),
...and IF you have a different path to XCode (like in my case, I had Xcode beta), then you should run the command:
sudo xcode-select --switch /Applications/Xcode-beta.app/
After moving to mac os sierra, I completely formatted my mac now I'm facing problem to install cocoapods, every time I run sudo gem install cocoapods --pre
every thing installed well, and when I try to install a pod, the terminal stack on Setting up CocoaPods master repo
.
Already updated the system with sudo gem update --system and still got the same problem, searched online to found old answers to use pod install --verbose
Ss I found in THIS answer fail again tells to install it manually.
NOTE : I have the latest version of 'Command Line Tools'. Any suggestion or how to install master repo manually?
From https://stackoverflow.com/a/21852985/1033581:
on 4th Nov 2016, the repo is 1.07 GB
From https://stackoverflow.com/a/33699136/1033581:
To get a progression, you can clone master yourself:
pod repo remove master
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
pod setup
In my first installation, I got the same problem too, it takes too much time in "setting up master repo".
Actually, you can see it through "activity monitor" that it's actually downloading, but it seems the connection is slow from the server.
Try these steps, it solves my problem:
1. pod setup
It will do "setting up master" again, don't wait, continue these steps below:
2. Ctrl +C
3. pod repo remove master
4. cd ~/.cocoapods/repos
5. git clone --depth 1 https://github.com/CocoaPods/Specs.git master
It takes less than 7 minutes for me (I think it depends on internet connection), then I can do pod install.
I am using cocoa pods, and currently i am using pre version 1.0.0.beta.6, which i installed couple of months ago. I would like to check if there is new version, but without installing that new version.
I was browsing here and there, but could not find command for this.
When you make pod update, cocoa show you and suggest the last version, and suggest install the beta (I recomend don't do it!), just like this:
Check this link :
https://rubygems.org/gems/cocoapods/versions
Here are listed all versions of CocoaPods
Also, you can try :
gem list cocoapods --remote --all
It will print all available versions of gem (without beta version).