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 in


在執行第三方demo的時候出現以下提示錯誤:

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.

 百度之后得出以下方案:

方案一:

command+Q 退出 Xcode,重新執行pod install,之后再重新打開Xcode運行。

正常 方案一: 即可解決問題.

方案二:

稍微麻煩一點,刪除以下文件:

xcworkspace
Podfile.lock
Pods文件夾
~/Library/Developer/Xcode/DerivedData路徑下對應工程的文件夾

 

之后重新執行pod install --verbose --no-repo-update

方案三:
1.設置Configurations

選中Project->選擇Info tab->看看Configurations是不是被設置為 None了,如果是None的話請改為Pods,如圖:

 

2.修改Pods腳本文件路徑:

  1. 右鍵工程根目錄下的xxx.xcodeproj文件,顯示包內容
  2. 雙擊打開project.pbxproj文件
  3. 查找"resources.sh", 把路徑改為如下紅框處:
  4. 重新打開工程(雙擊workspace文件),到此應該是能正常編譯運行了.
方案四:

1.找到項目根目錄下的Podfile.lock文件,和Pods文件夾下的Manifest.lock文件

2.然后復制Podfile.lock文件的內容替換掉Manifest.lock文件內的內容,好啦,至此問題解決


免責聲明!

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



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