Skip to content
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
Closed

update mac osx to 10.10 and pod cannot work #2219

tonglesu opened this issue Jun 3, 2014 · 37 comments

Comments

@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
Copy link
Member

Try gem install cocoapods

@BohdanOrlov
Copy link

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
Copy link

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

@kekkooo86
Copy link

i have same problem, help me.

problem between OS X 10.10 and cocoapods

@LucaGobbo
Copy link

I used

gem install xcodeproj

you might need to uninstall and re-install cocoapods

gem uninstall cocoapods
gem install cocoapods

@tonglesu
Copy link
Author

tonglesu commented Jun 3, 2014

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

@justinmakaila
Copy link

@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
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
Copy link

@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
Copy link
Author

tonglesu commented Jun 3, 2014

Thankyou @justinmakaila I will try

@selfdisciplineman
Copy link

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

@dburr
Copy link

dburr commented Jun 4, 2014

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

@amoblin
Copy link

amoblin commented Jun 4, 2014

Thank you @justinmakaila ! Everything goes well~

@devxoul
Copy link
Contributor

devxoul commented Jun 4, 2014

@justinmakaila Thanks! 👍

@tonglesu
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
Copy link

SAFAD commented Jun 4, 2014

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

@alkozin
Copy link

alkozin commented Jun 5, 2014

@justinmakaila, thank you. Works for me

@armanshan12
Copy link

@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
Copy link

@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
Copy link

Worked!

@ignotusverum
Copy link

@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?

@andypple
Copy link

Try it:

/usr/bin/login -f your_mac_username

cd "to your project"

pod install

Done.

@ogarkov-dev
Copy link

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

@BryanOne
Copy link

@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?

@andypple
Copy link

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

@BryanOne
Copy link

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

@andypple
Copy link

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

@BryanOne
Copy link

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
Copy link
Member

gem uninstall xcodeproj && gem install xcodeproj?

@BryanOne
Copy link

@segiddins tried many times

@andypple
Copy link

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

@vinhnx
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
Copy link

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

@ggiampietroaltimetrik
Copy link

Thanks @justinmakaila this works for me too.

@ArEnSc
Copy link

ArEnSc commented Jun 17, 2014

It works!!! =D

@siwonia
Copy link

siwonia commented Jun 19, 2014

Thanks @justinmakaila!

@fernandomatal
Copy link

Thanks @justinmakaila that worked for me too!

@CocoaPods CocoaPods locked and limited conversation to collaborators Jun 20, 2014
@kylef kylef closed this as completed Jul 8, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests