[bug]CocoaPods异常-The sandbox is not in 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命令

你可能感兴趣的:([bug]CocoaPods异常-The sandbox is not in sync with the Podfile.lock)