I am trying to run pod install, since my xCode is saying
The sandbox is not in sync with the Podfile.lock. Run ‘pod install’ or update your CocoaPods installation.
But as a result I am getting
ios % pod install
Analyzing dependencies
[!] Unable to find the Xcode project /Users/user/Documents/GitHub/samples/changers/ios/Runner.xcodeproj
for the target Pods-Runner
.
I tried different things that had been posted here, but so far nothing worked.
Thank you for any help with that!
3
Answers
Apparently something happened with paths to my directory with xcode project, so when I changed flag to
$(inherited)
flag and run pod install everything worked fine.Oh, so do you get it? Maybe some unwanted actions make your xcodeproj disappear. If you haven’t modified any inside iOS native code, you can delete entire ios folder and create it again. Checkout this: How do I add Platforms to an Existing Flutter App/Project? . Or short: type
flutter create .
cd ios
rm -rf Podfile.lock
arch -x86_64 pod install --repo-update
Try using these codes