簡體   English   中英

Xcode中的Cocoapods錯誤

[英]Cocoapods error in Xcode

由於出現這樣的可可豆錯誤,我無法運行我的Xcode項目:

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.

在我的Podfile中:

source 'https://github.com/CocoaPods/specs.git'


workspace 'LongPathToMyProject/..../.../MyProject.xcworkspace'

我嘗試了很多次“ pod install”,也嘗試了

rm -rf MyProject.xcworkspace
pod install

但這對我沒有幫助。

您的文件.xcodeprojpodfile必須位於同一文件夾中。 您不必手動創建.workspace 然后,在同一文件夾中運行:

pod install

如果它不起作用,則安裝pod deintegrate:

gem install cocoapods-deintegrate

並嘗試分解現有的Pod:

pod deintegrate

再次運行pod安裝之前

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM