Home > Mobile >  Module 'shared_preferences_ios' not found
Module 'shared_preferences_ios' not found

Time:07-28

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.

CodePudding user response:

Delete your podfile Then

flutter pub get 

Then

arch -x86_64 pod install

Then run again

CodePudding user response:

Cocopods issue for M1 CocoaPods/CocoaPods#9890

First run

  sudo arch -x86_64 gem install ffi

Then run

  arch -x86_64 pod install
  • Related