Cocoapods在编译时出错

时间:2014-03-07 04:55:45

标签: objective-c cocoapods

为什么在使用AFNetworking安装Cocoapods后尝试编译应用时出现此错误?

/Users/adsfa/Documents/adfasf/Pods/Pods-resources.sh: line 5: 
/Users/asdfa/Documents/sounasdfafdme/Pods/resources-to-copy-Krafdsakfen.txt: Permission denied

我的Podfile:

pod 'AFNetworking', '~> 2.0'

然而,当我尝试open Podfile时,我收到了这个

/Users/me/Documents/soundme/Podfile ; exit;
/Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:298:in `to_specs': Could not find 'cocoapods' (>= 0) among 110 total gem(s) (Gem::LoadError)
    from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:309:in `to_spec'
    from /Users/me/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:53:in `gem'
    from /Users/me/.rvm/rubies/ruby-1.9.3-p448/bin/pod:22:in `<main>'
logout

[Process completed]

1 个答案:

答案 0 :(得分:0)

检查机器中运行的ruby和rails的版本,并确保cocoapod安装在同一个

查看当前版本中所有已安装的宝石

gem list