解決 The sandbox is not sync with the Podfile.lock問題時候,如下所示


問題描述:

github  / sourcetree下載的Demo,很多時候使用到CocoaPods,有的時候因為依賴關系或者版本問題不能編譯運行。出現例如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 
pod install 

在pod install之前,請確保已經執行pod setup命令。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM