When I try to archive my app to upload on the Apple Store I face this problem Module image_picker
not found?
What should I do to fix this @import
error?
When I try to archive my app to upload on the Apple Store I face this problem Module image_picker
not found?
What should I do to fix this @import
error?
I know that is old topic, but i have a propossiton how you can resolve this issue .
If application is develope in Flutter, and this error occured when you opened project in XCode then you try open entire folder "ios" instead of "xcodeproj" or "xcworkspace".
The tip in the picture below.
Verify info.plist
iOS #
Add the following keys to your Info.plist
file, located in <project root>/ios/Runner/Info.plist
:
NSPhotoLibraryUsageDescription
- describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
NSCameraUsageDescription
- describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.
NSMicrophoneUsageDescription
- describe why your app needs access to the microphone, if you intend to record videos. This is called Privacy - Microphone Usage Description in the visual editor
More detail in: https://pub.dev/packages/image_picker
First of all, you can try running the following commands:
pods repo update
rm -rf ios/Pods ios/Podfile.lock
flutter clean
flutter run
After that, you have to open the "Runner.xcworkspace" on Xcode.
I know is an old topic but could help other people. You need to change "image_picker" to "image_picker_ios" and if this doesn't help, you can try this https://stackoverflow.com/a/72515674/11972105