0

When I try to archive my app to upload on the Apple Store I face this problem Module image_picker not found?

sample code

What should I do to fix this @import error?

fatihyildizhan
  • 8,614
  • 7
  • 64
  • 88
loqman
  • 15
  • 1
  • 4

4 Answers4

4

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.

example

gropa dev
  • 41
  • 4
  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 15 '22 at 04:03
  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/31069940) – Ejdrien Feb 21 '22 at 01:14
  • today it help me – GeekLei Mar 19 '22 at 08:15
1

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

RaSha
  • 1,356
  • 1
  • 16
  • 30
0

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.

William Romero
  • 185
  • 3
  • 10
0

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