Reputation: 1305
I'm trying to build my Flutter app for iOS using xCode and got error:
.../ios/Runner/GeneratedPluginRegistrant.m:10:9: Module 'sqflite' not found
When I'm trying to build application with flutter with command
flutter build ios
I don't have any problem. Application build successfully.
I tried to delete Pod directory in ios folder and then install pods from scratch
flutter pub get
pod install
How to fix this problem with xCode?
Upvotes: 4
Views: 3187
Reputation: 370
"I found the solution, In the existing project, once you guys add sqflite dependencies
Profile file in IOS folder will not generate code
we need to remove Podfile in ios
rm ios/Podfile
and run the project again, it works for me."
Credit:thanks to viroth-geek
Upvotes: 0
Reputation: 495
Change your target Destination to > Any iOS Device
This work for me
Upvotes: 0
Reputation: 562
XCode gives this type of Error like Module 'something' not found
, when sometimes the problem is somewhere else.
So, what I did is after running flutter build ios
command, I didn't try to run it in XCode. Because it was giving these errors.
So, I archived the app and tried to publish in App Store Connect. Then I found the real issue/bug on my code.
App store doesn't support transparent logo or app icon. This was the bug in my case. So you can try to archive and publish to app store connect. It may show you the real reason.
Upvotes: 4