1. 程式人生 > >IOS--The sandbox is not in sync with the Podfile.lock.

IOS--The sandbox is not in sync with the Podfile.lock.

這裡寫圖片描述
更新Cocoapod之後出現問題:

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.` 

解決方案:

這裡寫圖片描述
1、刪除Check Pods Manifest.lock
2、關閉現在的工作空間,刪掉以前的xcworkspace,然後重新pod install,install完後,重新開啟專案,clean+build專案,執行

rm -rf MyProject.xcworkspace  
pod install