2015-08-17 更新:
问题2:Pods-resources.sh: Permission denied
此问题常发生于在A电脑创建并导入pod的项目,在B电脑上编译发生:
解决:
- 方法一:
chmod a+x "/Users/shovon0203/Desktop/My Work/oDesk/momenTOGO/MomenTOGO_iPhone/Pods/Pods-resources.sh" // 路径为Permission denied前的文件路径
- 方法二:
项目重新进行pod install
或者pod update
进行修复。注意这个方法会重装或更新所有导入的第三方,如果有对第三方进行修改注意备份修改过的第三方,在更新后进行覆盖。
否则就悲剧了����
问题1:编译报file not found错误
解决:
Project->Info->Configurations中,在Configurations里面吧Debug 和Release的Tests 的None改为pods,clean一下,即可。
博客
下文转自 石丘博客
1.问题
CocoaPods did not set the base configuration of your project because because your project already has a custom config set
解决:
找到project下 info下的configuration 把下面两个都改成none
去目录下重新pod install
然后clean一下 就OK了
2.问题
CocoaPods was not able to update the master repo. If this is an unexpected issue and persists you can inspect it running pod repo update –verbose
解决:
sudorm−fr /Library/Caches/CocoaPods/
pod install 搞定
3.问题
这属于之前pods残余的东西
解决:
把pods 和framework下的红色内容删除就可以了
如图所示
附带参考内容
先删除全局的缓存:
$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ sudo rm -fr ~/.cocoapods/repos/master/
还不行的话就把清空当前 Pods 目录:
$ sudo rm -fr Pods/
// 再执行
$ sudo gem install cocoapods
$ pod setup 看看还有没有报错