iOS 'The sandbox is not sync with the Podfile.lock'问题解决

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS 'The sandbox is not sync with the Podfile.lock'问题解决相关的知识,希望对你有一定的参考价值。

问题描述:

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即可,如下所示

rm -rf MyProject.xcworkspace 
pod install 

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

以上是关于iOS 'The sandbox is not sync with the Podfile.lock'问题解决的主要内容,如果未能解决你的问题,请参考以下文章

iOS "The sandbox is not in sync with the Podfile.lock"解决方式

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

Jenkins: because the document's frame is sandboxed and the 'allow-scripts' permission

GitHub 上下载代码运行报错 :'The sandbox is not sync with the Podfile.lock'

The sandbox is not in sync with the Podfile.lock

The sandbox is not in sync with the Podfile.lock