Can't Run Sudo Pod Install After Updating to Cocoapods 0.32.1 with Error "You Cannot Run Cocoapods as Root. (Claide::Help)"

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



Leave a reply



Submit