今天在github上下載了一份代碼,但是運行時報錯:
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.
解決辦法
- 關(guān)閉當前的項目,打開終端,進入到代碼文件夾,刪除掉文件夾中的workspace
rm -rf project.xcworkspace
- 然后重新pod install,install完成之后,通過workspace打開項目即可。
pod install
- 在pod install之前,請確保已經(jīng)執(zhí)行pod setup命令。
圖片.png