Issue
I am using shared_preferences
dependency in Flutter.
Building Xcode (Product->archive - for Generic target) fails with
module 'shared_preferences' not found
I tried flutter clean
, flutter pub cache repair
, tried moving Flutter lib/ into new project (flutter create .
) and I building using older Xcode version (11.4.1)..currently I have 12.0 beta 3.
What is weird is that running in Emulator from my IDE (IntelliJ) works just fine with no errors.
These are my dependencies (pubspec.yaml)
dependencies:
flutter:
sdk: flutter
http: ^0.12.2
intl: any
flutter_spinkit: ^4.1.2
redux: any
flutter_redux: any
redux_thunk: any
shared_preferences: 0.5.1+2
Solution
In my case problem was that I was opening Xcode project from Project.xcodeproj instead of Project.xcworkspace.
Answered By - Xquick
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.