close

今天把以前做過的 iOS 專案開起來看看
結果就遇到了這個錯誤

 

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.
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

 

這裡有三個解決方式可以選擇

 

一、
Xcode 先關閉,然後在終端機重新執行 pod install 指令,之後就可以打開 Xcode build 看看了

 

二、
刪除 xcworkspace 、
Podfile.lock 、
Pods資料夾、
~/Library/Developer/Xcode/DerivedData 下對應的資料夾
然後同樣的在終端機重新執行 pod install 指令

 

三、
1、
選中 Project - >選擇 Info tab - >看看 Configurations 是不是被設為 None ,如果是的話請改為 Pods
2、
a、右鍵工程根目錄下的xxx.xcodeproj文件,顯示包內容
b、雙擊打開project.pbxproj文件
c、查找“Pods-resources.sh”,把路徑改為如下紅框處:

重新打開(雙擊 workspace 文件)

 

資料來源:
http://www.jianshu.com/p/4c3164fe552a













 

 


arrow
arrow
    全站熱搜

    顏澤偉 發表在 痞客邦 留言(0) 人氣()