美文网首页
【Cocoapods错误】

【Cocoapods错误】

作者: 鄒賢 | 来源:发表于2016-10-26 15:22 被阅读0次

错误一

While executing gem ...

解决办法

将CocoaPods更新到最新版本
sudo gem install -n /usr/local/bin cocoapods --pre

错误二

Invalid `Podfile` file: undefined method `rce' for #<Pod::Podfile:0x007fefd5 

错误原因

由于Podfile的内容是直接从其他地方复制过来的,没有注意第一行是 source 'https://github.com/CocoaPods/Specs.git' 所以导致出现上面的错误。

解决办法

source 'https://github.com/CocoaPods/Specs.git' 删除即可。

相关文章

网友评论

      本文标题:【Cocoapods错误】

      本文链接:https://www.haomeiwen.com/subject/ftnduttx.html