ruby - Can't run sudo pod install after updating to cocoapods 0.32.1 with error "You cannot run CocoaPods as root. (CLAide::Help)" -
i found issue when running sudo pod install command after updating latest version 0.32.1. earlier working fine.
when tried pod install older cocoapods, asked me update latest cocoapods version i.e. 0.32.1. after updated cocoapods gem, can't sudo pod install in xcode project. gives me following error.
± sudo pod install ruby-1.9.3-p0 password: /users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/gems/1.9.1/gems/claide-0.5.0/lib/claide/command.rb:328:in `help!': [!] cannot run cocoapods root. (claide::help) cocoapods, objective-c library package manager. commands:....
any suggestion overcome issue helpful. in advance.
i had update permission on cocoapods
sudo chown -r $user ~/library/caches/cocoapods
sudo chown -r $user ~/.cocoapods
since seems fix problem people, might want try running "pod install" , see if fixed problem point. however, still had permission denied when running "pod install" pod item, running next line overwrite permission pod folder.
sudo chown -r $user ./pods
i have removed old podfile.lock before running pod install
source :
Comments
Post a Comment