Flutter image picker not working in ios 14 with Mac M1 chip simulator

Viewed 2834

Image picker appears with list of images , but cannot pick an image from list. I have already added camera permission to plist file. It working in real device with ios 12.6. I am using ios 14 simulator in Mac M1 machine.

4 Answers

add this to your info.plist

 <key>NSPhotoLibraryUsageDescription</key>
    <string>Need to upload image</string>
    <key>NSCameraUsageDescription</key>
    <string>Need to upload image</string>
    <key>NSMicrophoneUsageDescription</key>
    <string>Need to upload image</string>

Try upgrading to Xcode 13.1. It worked for me.

add this line in your info plist file under dict its will help and make sure plist verion 1.0 and now also go in pod file where ios verion should be 10.

 <key>NSPhotoLibraryUsageDescription</key>
        <string>This app needs access the photo to use for order.</string>
Related