您的位置:首页 > 其它

The sandbox is not sync with the Podfile.lock问题解决方案

2016-03-14 10:50 429 查看
问题描述:
github下载的Demo,很多时候使用到CocoaPods,有的时候因为依赖关系或者版本问题不能编译运行。出现例如
The
sandbox is not sync with the Podfile.lock
问题时候,如下所示

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.`


解决方案:
关闭当前的工作空间,删除掉文件夹中的workspace,然后重新pod install,install完成之后,通过workspace打开工作空间,clean+build即可,如下所示

cd /Users/Jack/Desktop/Coding-iOS-master 进入工程,更加你的位置改变
rm -rf MyProject.xcworkspace 删除xcworkspace文件(改成你工程的名字),也可以手动删除
pod install                    安装第三方库


在pod install之前,请确保已经执行pod setup命令。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: