skip to Main Content

I know this question has been posted tons of times and after going through all of them, i am still yet to fix the problem.

Running on Apple silicon mac, latest flutter, xcode, android studio and cocoapods.
Xcode open in workspace.

When i am trying to run with shared_preferences added I get module not found in XCode
enter image description here

In terminal i am getting this:

enter image description here

I have tried deleting pod file, flutter clean, build clean, changing IOS target version on pod file to match build and many other suggestions.

I am looking for any other suggestion that could help solve this problem.
The same module missing also came up with firebase, but i just removed it and forgot about it.

2

Answers


  1. Delete your podfile
    Then

    flutter pub get 
    

    Then

    arch -x86_64 pod install
    

    Then run again

    Login or Signup to reply.
  2. Cocopods issue for M1 CocoaPods/CocoaPods#9890

    First run

      sudo arch -x86_64 gem install ffi
    

    Then run

      arch -x86_64 pod install
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search