Cocoapods Error at Compile time

风格不统一 提交于 2019-12-11 19:34:36

问题


Why am I getting this error when I try to compile my app after installing AFNetworking using Cocoapods?

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

My Podfile:

pod 'AFNetworking', '~> 2.0'

however, when I try to do open Podfile, I receive this

/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:


Check the version of ruby and rails running in the machine and make sure cocoapod is installed in the same

To see all the installed gems in the current version

gem list


来源:https://stackoverflow.com/questions/22241797/cocoapods-error-at-compile-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!