今天在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)閉當(dāng)前的項目忿族,打開終端噪漾,進(jìn)入到代碼文件夾亿眠,刪除掉文件夾中的workspace
rm -rf project.xcworkspace
- 然后重新pod install,install完成之后会傲,通過workspace打開項目即可锅棕。
pod install
- 在pod install之前,請確保已經(jīng)執(zhí)行pod setup命令淌山。