编译时的Cocoapods错误 [英] Cocoapods Error at Compile time

查看:73
本文介绍了编译时的Cocoapods错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么使用 Cocoapods 安装 AFNetworking 后尝试编译我的应用程序时会出现此错误?

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

我的Podfile:

pod 'AFNetworking', '~> 2.0'

但是,当我尝试执行 open Podfile ,我收到了这个

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]


推荐答案

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

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

这篇关于编译时的Cocoapods错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆