skip to Main Content

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


  1. Chosen as BEST ANSWER

    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.


  2. 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 .

    Login or Signup to reply.
  3. cd ios

    rm -rf Podfile.lock

    arch -x86_64 pod install --repo-update

    Try using these codes

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search