解决 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

sudo gem install cocoapods

pod setup

pod install

微信公众号
手机浏览(小程序)
0
分享到:
没有账号? 忘记密码?