Cocoapods: Error during pod install

Created on 6 May 2015  路  6Comments  路  Source: CocoaPods/CocoaPods

Analyzing dependencies
dyld: lazy symbol binding failed: Symbol not found: _rb_ary_new_from_values
  Referenced from: /Users/ryancopley/.rvm/gems/ruby-2.1.1/gems/psych-2.0.13/lib/psych.bundle
  Expected in: flat namespace

dyld: Symbol not found: _rb_ary_new_from_values
  Referenced from: /Users/ryancopley/.rvm/gems/ruby-2.1.1/gems/psych-2.0.13/lib/psych.bundle
  Expected in: flat namespace

I ran sudo gem install cocoapods and tried again, still receiving this error.

Most helpful comment

For anyone else trying, the second command should be rvm use ruby-2.2.2

All 6 comments

This looks to be an issue with your ruby's installation of Psych, which is the YAML parser that ship with Ruby.

Rather than just closing my issue immediately... is there a known version of Ruby that works with Cocoapods? I'm using RVM and I'm on ruby-2.1.1, I don't really write much ruby, so is there a version I should be on?

This isn't a ruby version issue, but rather an issue with your specific installation.

What would help with this? Is it an issue with my installation of ruby, or the packages installed? Again, I'm not a ruby person. Would reinstalling Ruby mitigate this?

If anyone else runs into this issue:

I upgraded to ruby 2.2.2 (latest) via rvm (rvm install ruby-2.2.2; ruby use ruby-2.2.2) and I can now run pod install

For anyone else trying, the second command should be rvm use ruby-2.2.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gerchicov-bp picture gerchicov-bp  路  3Comments

pallaviMN picture pallaviMN  路  3Comments

steffendsommer picture steffendsommer  路  3Comments

iosdev-republicofapps picture iosdev-republicofapps  路  3Comments

5SMNOONMS5 picture 5SMNOONMS5  路  3Comments