pod install 失败

错误报告:

Analyzing dependencies

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `open': No such file or directory - /Users/yourMac/.cocoapods/repos (Errno::ENOENT)

 

解决方案:

把个人文件夹下的 .cocoapods 删除,执行 pod setup 命令(时间可能会有点久),成功后就可以执行 pod install

 

 

错误报告:

Invalid `Podfile` file: undefined local variable or method

解决方案:

我用Mac 自带的TextEdit编辑保存,然后编辑器自动把 ' 替换成了‘,改成在XCode中编辑保存即可。

posted @ 2014-12-02 17:40  1oo1  阅读(1091)  评论(0编辑  收藏  举报