一般出現(xiàn)在更新Cocoapod之后或者你項目上傳在第三方托管平臺并且用了Cocoapod來管理第三方庫時,別人下載你代碼會出現(xiàn)的報錯:
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.`
解決方案:
關閉現(xiàn)在的工作空間状囱,刪掉以前的xcworkspace叛氨,然后重新pod install辐赞,install完后柬唯,重新打開項目,clean+build項目酿雪,運行
rm -rf MyProject.xcworkspace
pod install