iOS-报错The sandbox is not in sync with the Podfile.lock. Run ‘pod install‘ …的解决方法

今天在Git上清除一些配置文件之后,原来正常的项目代码开始编译报错了。
报错的问题如下。

遇到的问题:Xcode编译报错The sandbox is not in sync with the Podfile.lock. Run ‘pod install’ …

根据提示去终端执行pod install,报错并不能解决该问题。

查找资料最终解决问题的方案:

找到项目的podfile.lock 以及pods里面的Manifest.lock。
复制一份podfile.lock之后修改名字为Manifest.lock。
将修改好的Manifest.lock替换原来的Manifest.lock。

再次打开项目进行编译,报错没有了。真机调试也正常了。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/c1o2c3o4/article/details/131251125