Github上下載的項(xiàng)目cocoapods出現(xiàn)錯(cuò)誤

錯(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.

Paste_Image.png

錯(cuò)誤原因:

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


Paste_Image.png

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

Paste_Image.png

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

Paste_Image.png

再輸入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)目。

Paste_Image.png
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容