您的位置:首页 > Web前端

[!] Invalid `Podfile` file: undefined method `inherit!' for #<Pod::Podfile:0x007fece49911e0>. Updati

2016-10-16 23:38 429 查看
从git 上拉下来的代码 一运行就报错如下:

The file “Pods-SAGA_iOS.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/luqichun/Desktop/iOS/SAGA_iOS/Pods/Target Support Files/Pods-SAGA_iOS/Pods-SAGA_iOS.debug.xcconfig)

首先要查看一下自己是否已经安装了 cocoapods

运行命令:gemsources−l结果如果为: gem sources -a http://ruby.taobao.org/

表示已经替换镜像 为淘宝镜像 运行sudo gem install cocoapods 可以安装cocoapods

已安装者运行:pod update 更新项目第三方框架

如果运行后报如下错误:



表示需要更新 cocoapods

运行 sudo gem install cocoapods 进行更新 cocoapods

更新完后再运行 pod update
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐