この問題を解決する方法。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.
ベストアンサー1
良いヒントを見つけた問題の内部のCocoaPods
ではGitHub
、これを試してください:
- プロジェクトを閉じます(Xcodeを完全に閉じた方が良いでしょう)
- プロジェクト内でターミナルを開き、実行します
pod install
- プロジェクトをもう一度開きます。まだエラーがある場合は、プロジェクトをクリーンアップしてください ( Shift+ cmd+ K)。その後、エラーはなくなるはずです。