錯(cuò)誤描述:Github上下載的項(xiàng)目cocoapods出現(xiàn)錯(cuò)誤,左邊目錄Pods.xcodeproj文件變紅,運(yùn)行后顯示以下錯(cuò)誤:
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.

錯(cuò)誤原因:
錯(cuò)誤解決:
需要我們重新pod里面的第三方:
1.刪除項(xiàng)目中的原有Podfile.lock文件

2.對這個(gè)項(xiàng)目重新pod install:
打開終端命令行:

在命令行內(nèi)輸入 cd ,然后空格,再輸入整個(gè)項(xiàng)目的路徑(將整個(gè)項(xiàng)目的文件用鼠標(biāo)直接拖拽進(jìn)終端的黑色窗口內(nèi)即可)按回車。(這個(gè)過程就是讓命令行接下來的操作都是針對這個(gè)項(xiàng)目文件進(jìn)行操作)

再輸入pod install ,等待項(xiàng)目pod install,出現(xiàn)p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}span.s1 {font-variant-ligatures: no-common-ligatures}
Pod installation complete! There are 4 dependencies from the Podfile and 5 total
pods installed.即可,關(guān)閉窗口重新運(yùn)行項(xiàng)目。
