AppCode 3.0 can't install CocoaPods

1. Choose Ruby Sdk in Preferences->IDE Settings->CocoaPods-> "ruby-2.0.0-p247(/usr/bin/ruby)"
2. Tap Install CocoaPods.
3. Get:
        Following gems were not installed:
cocoapods (0.33.1): Error installing      cocoapods:
ERROR: Failed to build gem native extension.      /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby      extconf.rb creating Makefile make "DESTDIR=" compiling generator.c linking      shared-object json/ext/generator.bundle clang: error: unknown argument:      '-multiply_definedsuppress'      [-Wunused-command-line-argument-hard-error-in-future] clang: note: this      will be a hard error (cannot be downgraded to a warning) in the future      make: *** [generator.bundle] Error 1 Gem files will remain installed in      /Users/<Name>/.gem/ruby/2.0.0/gems/json-1.8.1 for inspection. Results      logged to      /Users/<Name>/.gem/ruby/2.0.0/gems/json-1.8.1/ext/json/ext/generator/gem_make.out

I Guess it is conencted with:

Update 1:

> gem update --system and setting New Ruby SDK Path To : /Users/<name>/.rvm/rubies/ruby-2.0.0-p247/bin/gem make a deal.

But system version not working at all.

Update 2:

calling pod install from Tools->CocoaPods->Install:

/usr/bin/ruby /Applications/ install --no-ansi
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- cocoapods (LoadError)
 from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
 from /Applications/ `<main>'
Failed with exit code: 1

Update 3: Fixed

1. Installed new developer tools
2. > rvm use system
3.  Choose Ruby Sdk in Preferences->IDE Settings->CocoaPods-> "ruby-2.0.0-p451(/usr/bin/ruby)"
4. pod install from Tools->CocoaPods->Install


Alexey, we are investigating this issue, please follow the bug report.


Alexey, am I correct that at the moment of "Update 1" default Ruby in RVM was 2.0.0-p247? That would explain why AppCode can't find system's cocoapods (Update 2) because it failed to install.
Another thing: since you have updated the toolchain may I ask you to try again and update the gem with system's Ruby from AppCode? Does it succeed?


Thank you for the answers.
Dmitry, I guess so. I cannot tell you exatly what is version of RVM was, but the system version was 2.0.0-p247.
About another thing: It works, as I wrote in update 3. So it might be the issue of the toolchain version.
I think this update to dev tools helps.


OK, thanks. If something like this happens in the future please tell us.


Please sign in to leave a comment.