New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run pod install after re-install cocoapods (Solution given beneath) #7072

tomisacat opened this Issue Sep 26, 2017 · 6 comments


None yet
6 participants

tomisacat commented Sep 26, 2017


What did you do?

Run pod install --verbose

What did you expect to happen?

Install pods listed in Podfile

What happened instead?

Wrong Ruby interpreter

Failed to execute process '/usr/local/bin/pod'. Reason:
The file '/usr/local/bin/pod' specified the interpreter '/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby', which is not an executable command.

CocoaPods Environment


   CocoaPods : 1.3.1
        Ruby : ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
    RubyGems : 2.6.13
        Host : Mac OS X 10.13 (17A365)
       Xcode : 9.0 (9A235)
         Git : git version 2.13.5 (Apple Git-94)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : master - @ 90ed17438a72209b8df48120e94f072bfdd64812

Installation Source

Executable Path: /usr/bin/pod


cocoapods-deintegrate : 1.0.1
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.2.0
cocoapods-try         : 1.1.0


After googled and I found this issue #6778 suggested to re-install cocoapods, I just followed up and the problem still occurred. But I find the path of newly-installed pod is different than before, the new one is located in /usr/bin/pod but previous is located in /usr/local/bin/pod, So I just deleted the previous one and run pod install --verbose again and it did worked! I'm not very familiar with Ruby, could anyone explain me? Thanks!

BTW, I've disabled SIP by csrutil disable.


This comment has been minimized.


dnkoutso commented Sep 27, 2017

Keeping this closed. People can still search for it.

@dnkoutso dnkoutso closed this Sep 27, 2017


This comment has been minimized.

JakubTudruj commented Oct 1, 2017

I had the same problem. The problem was solved by reinstalling cocoapods:
sudo gem install cocoapods


This comment has been minimized.

satish1219 commented Nov 28, 2017

try this
just open terminal

  1. sudo gem install cocoapods

After completion of install cocoa pods then
2) pod repo update


This comment has been minimized.

tomisacat commented Nov 30, 2017

@JakubTudruj @satish1219 Just re-install didn't solve my problem and I've already figured out the solution posted in my origin comment. Thanks and keep this for others to search it : )


This comment has been minimized.

gani-koduri commented Dec 15, 2017

Thanks, reinstall worked for me


This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment