'Why does xCode cannot build my flutter app with 'sqflite' not found error
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?
Solution 1:[1]
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.
Solution 2:[2]
Change your target Destination to > Any iOS Device
This work for me
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Ayoub Arroub |