2014-10-09 19 views
5

Bu eğiticiyi http://www.raywenderlich.com/64546/introduction-to-cocoapods-2'u MacBook'umdaki (Mavericks 10.9.5) cocoapods yüklemek için takip ediyordum.Cocoapod'ları yükleyemiyor, pod kurulumu hakkında rapor

başarıyla kullanmış bu

sudo gem update --system 
sudo gem install cocoapods 

komutları Ama pod setup her kullandığınızda sonra ben pod install yazarsanız de görünür bu günlüğü

/Users/tommy/.rvm/gems/[email protected]/gems/xcodeproj-0.19.3/lib/xcodeproj/plist_helper.rb:140:in `<module:CoreFoundation>': uninitialized constant Fiddle::NULL (NameError) 
    from /Users/tommy/.rvm/gems/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/gems/cocoapods-0.34.2/bin/pod:32:in `<top (required)>' 
    from /Users/tommy/.rvm/gems/[email protected]/bin/pod:23:in `load' 
    from /Users/tommy/.rvm/gems/[email protected]/bin/pod:23:in `<main>' 

olsun.

Ne yapmalıyım? Şimdiden teşekkürler.

cevap

19

Cocoapods gem'in en son sürümü (v0.34.2) xcodeproj gem> = 0.19.2 versiyonunu gerektirir. Ancak xcodeproj gem'in en son sürümü (0.19.3) bu soruna neden oluyor.

Bunu, xcodeproj sürümünü 0.19.2 değerine sabitleyerek düzeltmesi gerçekleştirilmiştir. senin gemfile içinde

gem uninstall xcodeproj 
gem install xcodeproj -v 0.19.2 

veya belirtin gem 'xcodeproj', '0.19.2' ardından paket çalıştırın.

+1

Sorun buydu. Teşekkür ederim adam – r4id4

+0

Ayrıca xcodeproj 0.19.3 Ruby 2.0.0 üzerinde çalışıyor gibi görünüyor, ama bu sorun Ruby 1.9.3-p448 (zaten benim için) üzerinde oluyordu dikkati çekiyor. Böylece Ruby sürümünüzü yükseltmeyi/değiştirmeyi deneyebilirsiniz. – odlp