CocoaPods报错:The sandbox is not in sync with the Podfile.lock...

当我们从github下一些demo,如果笔者添加CocoaPods管理,有时候因为依赖关系或者版本问题不能编译,很有可能下载到我们本地报错。报错提示如下:

diff: /../Podfile.lock: No such file or directory

diff: /Manifest.lock: No such file or directory

error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

解决方案:

1、删除lock文件,步骤:Build Phases -->Check Pods Manifest.lock 如下操作:

 ![关键一步.png](http://upload-images.jianshu.io/upload_images/1398395-7a7a56e464b82a46.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

2、command + B编译 ,如果不报错就ok了。

PS:如果编译后提示 'xxx' file not found

 可能因为CocoaPods更新版本后,又是target问题。决绝方案上篇博客提到过 

http://blog.csdn.net/fucuiping_1314/article/details/52056655

1、修改Podfile文件的内容


看着.png

2、 终端输入命令:pod install

3、编译一下,就OK了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容