如何解决这个问题。我已经从 Git 存储库下载了 iOS 项目,当我尝试构建时,出现错误:
Check dependencies
The file “Pods.xcconfig” couldn’t be opened because there is no such file. (/Users/YoGesh/Desktop/Xy-3/Pods/Pods.xcconfig)
PhaseScriptExecution Check\ Pods\ Manifest.lock /Users/YoGesh/Library/Developer/Xcode/DerivedData/Xy-bmwkojrwthnvzdfxthnxeqgesekm/Build/Intermediates/Xy.build/Debug-iphonesimulator/Xy.build/Script-C0451AB63D7F4B73830000BA.sh
cd /Users/YoGesh/Desktop/Xy-3
/bin/sh -c /Users/YoGesh/Library/Developer/Xcode/DerivedData/Xy-bmwkojrwthnvzdfxthnxeqgesekm/Build/Intermediates/Xy.build/Debug-iphonesimulator/Xy.build/Script-C0451AB63D7F4B73830000BA.sh
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.
最佳答案
我找到了一个很好的提示 inside the issues GitHub
上的 CocoaPods
,试试这个:
- 关闭你的项目(最好完全关闭 Xcode)
- 在您的项目中打开终端并执行
pod install
- 再次打开您的项目。如果仍然存在错误,请清理您的项目 ( Shift + cmd + K ),此后错误应该消失。
关于ios - 文件 “Pods.xcconfig” 无法打开,因为没有这样的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24569183/