3

I have this error when I am trying to install a pod using the Xcode plugin -- CocoaPods : "The command path could not be resolved. Resolved command path for "pod" is invalid. Expanded GEM_PATH: /usr/bin."

After successfully reinstalling CocoaPods through Terminal and running command

$ pod install

I have this error:

-bash: pod: command not found

CocoaPods works fine before upgrading Mac OS

3 Answers 3

5

Open terminal and:

sudo gem uninstall cocoapods
sudo gem install -n /usr/local/bin cocoapods
sudo chmod +rx /usr/local/bin/
0

reinstall cocoapods with the command

sudo gem install -n /usr/local/bin cocoapods
2
  • 1
    I tried.cocoapods's executable "pod" conflicts with /usr/local/bin/pod Overwrite the executable? [yN] I chose y, and then installed succeeded. But any pod command still doesn't work.
    – Liu Ding
    Oct 5, 2015 at 16:54
  • @LiuDing you may need to open a new terminal window after installing. Oct 30, 2015 at 14:29
0

change path to /usr/local/bin : Xcode->product->cocoapods->GEM_PATHpicture shows

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.