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

在开发过程中经常会去下载大神的demo进行学习和参考,这些下载下来的demo往往会遇到The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.这种错误,这是因为第三方库没有进行更新

我们用终端进行更新

打开终端,cd到项目根目录(不知道路径的可以手动把项目拖进终端)

然后pod setup 更新下本地的pod spec 库时间有点长,可以先小憩一会

然后再 执行:pod update --verbose --no-repo-update 更新pod,然后再运行

完美解决

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

推荐阅读更多精彩内容