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

update mac osx to 10.10 and pod cannot work #2219

Closed
tonglesu opened this Issue Jun 3, 2014 · 37 comments

Comments

Projects
None yet
@tonglesu
Copy link

tonglesu commented Jun 3, 2014

update mac osx to 10.10 when i want to use pod ,such as:

~  pod --help
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.16.1/lib/xcodeproj/ext.rb:6:in `rescue in <top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.16.1/lib/xcodeproj/ext.rb:3:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.16.1/lib/xcodeproj.rb:30:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.32.1/lib/cocoapods.rb:2:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.32.1/bin/pod:32:in `<top (required)>'
    from /usr/bin/pod:23:in `load'
    from /usr/bin/pod:23:in `<main>'

I use zsh not the bash shell,get the same error in bash shell. How to solve it? rvm install 2.1 got error

@segiddins

This comment has been minimized.

Copy link
Member

segiddins commented Jun 3, 2014

Try gem install cocoapods

@BohdanOrlov

This comment has been minimized.

Copy link

BohdanOrlov commented Jun 3, 2014

sudo gem install cocoapods
returns:
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
no such name (https://api.rubygems.org/api/v1/dependencies?gems=json_pure)

Any ideas?

@BohdanOrlov

This comment has been minimized.

Copy link

BohdanOrlov commented Jun 3, 2014

Opening xcode and switching to xcode 6 command line tools helped me.

@kekkooo86

This comment has been minimized.

Copy link

kekkooo86 commented Jun 3, 2014

i have same problem, help me.

problem between OS X 10.10 and cocoapods

@LucaGobbo

This comment has been minimized.

Copy link

LucaGobbo commented Jun 3, 2014

I used

gem install xcodeproj

you might need to uninstall and re-install cocoapods

gem uninstall cocoapods
gem install cocoapods
@tonglesu

This comment has been minimized.

Copy link
Author

tonglesu commented Jun 3, 2014

When I use sudo gem install cocoaPods --verbose then
ERROR: Possible alternatives: cocoapods

@justinmakaila

This comment has been minimized.

Copy link

justinmakaila commented Jun 3, 2014

@BohdanOrlov how did you install xcode 6 command line tools? If I run xcode-select --install I get an error saying that there's no update from the update servers

@tonglesu

This comment has been minimized.

Copy link
Author

tonglesu commented Jun 3, 2014

@justinmakaila maybe BohdanOrlov did this open xcode6 and command+, open the Preference and tap the Locations the last is Command line tools just change it. But I do nothing for me

@justinmakaila

This comment has been minimized.

Copy link

justinmakaila commented Jun 3, 2014

@tonglesu it worked for me

  1. Open Xcode 6
  2. Open Preferences
  3. Click the Locations tab
  4. Change the Command Line Tools version to Xcode 6.0
  5. Uninstall cocoapods
    a. $ sudo gem uninstall cocoapods
  6. Install xcodeproj
    a. $ sudo gem install xcodeproj
  7. Install cocoapods
    a. $ sudo gem install cocoapods
  8. Run pod --version to verify that it worked
@tonglesu

This comment has been minimized.

Copy link
Author

tonglesu commented Jun 3, 2014

Thankyou @justinmakaila I will try

@jacowu

This comment has been minimized.

Copy link

jacowu commented Jun 3, 2014

Thanks @justinmakaila It also work for me, for our Chinese 's saying "No Zuo No Die".

@dburr

This comment has been minimized.

Copy link

dburr commented Jun 4, 2014

Same here. Worked like a charm. Thanks @justinmakaila !

@amoblin

This comment has been minimized.

Copy link

amoblin commented Jun 4, 2014

Thank you @justinmakaila ! Everything goes well~

@devxoul

This comment has been minimized.

Copy link
Contributor

devxoul commented Jun 4, 2014

@justinmakaila Thanks! 👍

@tonglesu

This comment has been minimized.

Copy link
Author

tonglesu commented Jun 4, 2014

I have tried,Thank you @justinmakaila ,Everything goes well now. Something I want to talk to chinese,we must use http://ruby.taobao.org/ instead of https://rubygems.org/ .Fuck the GFW.

@SAFAD

This comment has been minimized.

Copy link

SAFAD commented Jun 4, 2014

@justinmakaila where do you live? I am sending you a beer now!

@alkozin

This comment has been minimized.

Copy link

alkozin commented Jun 5, 2014

@justinmakaila, thank you. Works for me

@armanshan12

This comment has been minimized.

Copy link

armanshan12 commented Jun 6, 2014

@justinmakaila I followed your instructions but it still did not work. How can I point cocoa pods to use another ruby that i install through rvm? It seems to me cocoa pods is not working right with the default Ruby.framework that came with OS 10.10

@justinmakaila

This comment has been minimized.

Copy link

justinmakaila commented Jun 6, 2014

@armanshan12 I'm not very familiar with rvm, I can't offer much advice. I do know that my fix worked with the default Ruby.framework

On Fri, Jun 6, 2014 at 1:35 PM, armanshan12 notifications@github.com
wrote:

@justinmakaila I followed your instructions but it still did not work. How can I point cocoa pods to use another ruby that i install through rvm? It seems to me cocoa pods is not working right with the default Ruby.framework that came with OS 10.10

Reply to this email directly or view it on GitHub:
#2219 (comment)

@matthewlui

This comment has been minimized.

Copy link

matthewlui commented Jun 8, 2014

Worked!

@ignotusverum

This comment has been minimized.

Copy link

ignotusverum commented Jun 9, 2014

@justinmakaila, I reinstalled cocoa pods by following your steps, now when i'm trying pod install/update it's stuck at "analyzing dependencies" any ideas what am i doing wrong?

@phatle

This comment has been minimized.

Copy link

phatle commented Jun 10, 2014

Try it:

/usr/bin/login -f your_mac_username

cd "to your project"

pod install

Done.

@anToha

This comment has been minimized.

Copy link

anToha commented Jun 10, 2014

@justinmakaila you are the best! You saved my day!

@BryanOne

This comment has been minimized.

Copy link

BryanOne commented Jun 12, 2014

@justinmakaila still not work for me ~
I installed commandLineTools for 10.10 first, then do thins like U listed, still not work
Am I missed something?

@phatle

This comment has been minimized.

Copy link

phatle commented Jun 12, 2014

If it's not work for you, you can try my solutions.

@BryanOne

This comment has been minimized.

Copy link

BryanOne commented Jun 12, 2014

@phatle tied, still not work,I want back to 10.9 - -~

@phatle

This comment has been minimized.

Copy link

phatle commented Jun 12, 2014

@kobe9009 Pls paste your error here. Maybe people can help you.

@BryanOne

This comment has been minimized.

Copy link

BryanOne commented Jun 12, 2014

xcodeproj --version
or
pod --version
will print same error log just like @tonglesu :

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj/ext.rb:6:in `rescue in <top (required)>'
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj/ext.rb:3:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/lib/xcodeproj.rb:30:in `<top (required)>'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.17.0/bin/xcodeproj:11:in `<top (required)>'
    from /usr/bin/xcodeproj:23:in `load'
    from /usr/bin/xcodeproj:23:in `<main>'

Need I reinstall ruby?

@segiddins

This comment has been minimized.

Copy link
Member

segiddins commented Jun 12, 2014

gem uninstall xcodeproj && gem install xcodeproj?

@BryanOne

This comment has been minimized.

Copy link

BryanOne commented Jun 12, 2014

@segiddins tried many times

@phatle

This comment has been minimized.

Copy link

phatle commented Jun 12, 2014

Ruby version comes with mac 10.10 has bugs. You should reinstall ruby with rvm

@vinhnx

This comment has been minimized.

Copy link

vinhnx commented Jun 12, 2014

If you're using iTerms, try set the value Phat suggests above into your Profile/General/Command:

/usr/bin/login -f your_mac_user_name

You might need to restart iTerms. Then, you can verify if it works

pod --version

This works for me. Hope it helps!

@BryanOne

This comment has been minimized.

Copy link

BryanOne commented Jun 12, 2014

@phatle after installed ruby 2.1.2 by rbenv, everything works fine
TKS~

@ggiampietroaltimetrik

This comment has been minimized.

Copy link

ggiampietroaltimetrik commented Jun 13, 2014

Thanks @justinmakaila this works for me too.

@ArEnSc

This comment has been minimized.

Copy link

ArEnSc commented Jun 17, 2014

It works!!! =D

@schultka

This comment has been minimized.

Copy link

schultka commented Jun 19, 2014

Thanks @justinmakaila!

@fernandomatal

This comment has been minimized.

Copy link

fernandomatal commented Jun 20, 2014

Thanks @justinmakaila that worked for me too!

@CocoaPods CocoaPods locked and limited conversation to collaborators Jun 20, 2014

@kylef kylef closed this Jul 8, 2014

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