我试图pod install
在我的项目中使用它来实现SDK,但它抛出了这个错误:
/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:318:in'to_specs':找不到35个宝石中的'cocoapods'(> = 0.a)(Gem :: LoadError)签入'GEM_PATH =/Users/admin/.gem/ruby/2.0.0:/Library/Ruby/Gems/2.0.0:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby /gems/2.0.0',
gem env
从/Library/Ruby/Site/2.0.0/rubygems/ 执行/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:327:in'to_spec'中的更多信息core_ext/kernel_gem.rb:64:来自/ usr/local/bin/pod的'gem':22:in''
有谁知道是什么原因以及如何解决它?
首先使用sudo命令卸载CocoaPods.
请遵循以下步骤:
sudo gem uninstall cocoapods
gem install cocoapods
pod install
再次安装时,请不要使用sudo
命令.你可以在这里找到sudo less installation.