-
Notifications
You must be signed in to change notification settings - Fork 2.7k
CocoaPods CLI fails in High Sierra due to change of Ruby version #6778
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
Comments
Nice thanks for the report. Will investigate. |
@lch88 it does not seem we hardcode the Ruby path anywhere for this to be caused...wonder if it's a High Sierra update issue. |
I've just tried to solve it, and It seems that the issue happens when upgrading from Sierra to High Sierra. System ruby version is upgraded but the version imprinted inside |
Thats the script code: |
@lch88 do other ruby commands work for you, irrelevant to cocoapods? |
@dnkoutso
The first line was |
@orta or @segiddins any thoughts on this? I am reaching my limit on Ruby and rubygems knowledge. |
Try reinstalling, |
@segiddins Yup. Reinstalling solves this and already did. Maybe I wasn't really clear enough up there 😅 |
@lch88 not sure. I will be closing but keeping an eye out for future reports. Thank you for trying it out on the latest macOS! |
Nothing, that's a downside of RubyGems hardcoding in a path rather than using |
Which, just in case more people find this, is not a CocoaPods issue (and it might get fixed in later betas) - the re-install recommendation is really the only option here. For re-install instructions check: #6898 (comment) |
Report
What did you do?
Run
pod install
or whatever starts withpod
What did you expect to happen?
pod xxx
should run pod command corresponding to xxx.In case of
pod install
, it should install all pod dependencies correctly.What happened instead?
Fails with following one-line error message
zsh: /usr/local/bin/pod: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin: no such file or directory
The reason seems to be change of system ruby version to 2.3. The path is moved to
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin
.CocoaPods Environment
*
pod env
doesn't work either.macOS 10.13 (17A264c) High Sierra Developer Beta
CocoaPod 1.2.1
Project that demonstrates the issue
Not tied to certain project setting.
The text was updated successfully, but these errors were encountered: