Can't run sudo pod install after updating to cocoapods 0.32.1 with error You cannot run CocoaPods as root. (CLAide::Help)
I had to update permission on CocoaPods
sudo chown -R $USER ~/Library/Caches/CocoaPods
sudo chown -R $USER ~/.cocoapods
Since it seems to fix the problem for some people, you might want to try running "pod install" and see if it fixed your problem from that point. However, I still had a permission denied when running "pod install" for a pod item, so running the next line will overwrite permission for the pod folder.
sudo chown -R $USER ./Pods
I have removed the old podfile.lock before running pod install
Source :
cocoaPods pod install Permission denied
https://github.com/CocoaPods/CocoaPods/issues/509
You cannot run CocoaPods as root. (CLAide::Help) Flutter
Solution
Just run this command:
export PATH=$PATH:/usr/local/bin
and then:
pod setup
and
pod install
Cocoapods not updating even after latest version is installed
Use which pod
to figure out where it's installed. Most likely it's through brew
, so you need to do a brew upgrade
to get the latest version. Generally it's best to install all Ruby tools through the same method: directly, through brew
, or using a Ruby manager like rvm
.
Unable to install pods using a legacy Cocoapods version
As iHulk states in his comment:
Use source "https://github.com/CocoaPods/Old-Specs"
at top of your pod file
Error on sudo pod install
From the command line run rm -rf ~/.cocoapods
Then run pod install
again. You shouldn't need the sudo.
This look like it's caused because there was a change to a spec and it's conflicting with running a git pull
Related Topics
How to Generate a Human Readable Time Range Using Ruby on Rails
Ruby: How to Convert a String to Boolean
How to Install Jekyll on Osx 10.11
Ruby 1.9 Hash with a Dash in a Key
Ruby 'Encode': "\Xc3" from Ascii-8Bit to Utf-8 (Encoding::Undefinedconversionerror)
How to Suppress Rails Console/Irb Outputs
Difference Between Truncation, Transaction and Deletion Database Strategies
Libxml2 Missing MAC Os X 10.10
Rails 4 Migration: How to Reorder Columns
Differencebetween 'After_Create' and 'After_Save' and When to Use Which
How to Count the Number of Records That Have a Unique Value in a Particular Field in Ror
How to Use Hash Keys as Methods on a Class
Set Attribute Dynamically of Ruby Object
How to Convert a Ruby Hash to Xml
Welcome/Home Page in Ruby on Rails - Best Practice