Unable to install cocoapods, report pod setup

I used this tutorial http://www.raywenderlich.com/64546/introduction-to-cocoapods-2 to install cocoapods on my MacBook (Mavericks 10.9.5).

I have successfully used these commands

 sudo gem update --system sudo gem install cocoapods 

But then when I use pod setup , I get this log

 /Users/tommy/.rvm/gems/ ruby-2.1.1@msf /gems/xcodeproj-0.19.3/lib/xcodeproj/plist_helper.rb:140:in `<module:CoreFoundation>': uninitialized constant Fiddle::NULL (NameError) from /Users/tommy/.rvm/gems/ ruby-2.1.1@msf /gems/xcodeproj-0.19.3/lib/xcodeproj/plist_helper.rb:70:in `<top (required)>' from /usr/local/Cellar/ruby193/1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:69:in `require' from /usr/local/Cellar/ruby193/1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:69:in `require' from /Users/tommy/.rvm/gems/ ruby-2.1.1@msf /gems/xcodeproj-0.19.3/lib/xcodeproj/ext.rb:2:in `<top (required)>' from /usr/local/Cellar/ruby193/1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:69:in `require' from /usr/local/Cellar/ruby193/1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:69:in `require' from /Users/tommy/.rvm/gems/ ruby-2.1.1@msf /gems/xcodeproj-0.19.3/lib/xcodeproj.rb:25:in `<top (required)>' from /usr/local/Cellar/ruby193/1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:69:in `require' from /usr/local/Cellar/ruby193/1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:69:in `require' from /Users/tommy/.rvm/gems/ ruby-2.1.1@msf /gems/cocoapods-0.34.2/lib/cocoapods.rb:2:in `<top (required)>' from /usr/local/Cellar/ruby193/1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:69:in `require' from /usr/local/Cellar/ruby193/1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:69:in `require' from /Users/tommy/.rvm/gems/ ruby-2.1.1@msf /gems/cocoapods-0.34.2/bin/pod:32:in `<top (required)>' from /Users/tommy/.rvm/gems/ ruby-2.1.1@msf /bin/pod:23:in `load' from /Users/tommy/.rvm/gems/ ruby-2.1.1@msf /bin/pod:23:in `<main>' 

It also appears if I type pod install .

What should I do? thanks in advance

+5
source share
1 answer

The latest version of the gemstone cocoapods (v0.34.2) requires the version xcodeproj gem> = 0.19.2. But the latest version of xcodeproj gem (0.19.3) is causing this problem.

It was possible to fix this by fixing the version of xcodeproj to version 0.19.2.

 gem uninstall xcodeproj gem install xcodeproj -v 0.19.2 

or specify gem 'xcodeproj', '0.19.2' in your gemfile, and then run the package.

+19
source

Source: https://habr.com/ru/post/1204308/


All Articles