When using ImagePicker().pickImage(source: ImageSource.camera) the app crashes. Tried the example provided on pub.dev for image_picker.
On an Android device, it works. On iOS 16 or below, it works.
Version image_picker 1.0.7.
I tried in different flutter versions, like 3.10.0, 3.13.9, 3.16.7.
I tried different iPhones, like XR, 13 mini, and 15 Pro Max.
Expected results:
Able to take a picture.
Actual results:
The app crashes before the camera opens.
My info.plist file is correct including keys NSPhotoLibraryUsageDescription, NSCameraUsageDescription, NSMicrophoneUsageDescription.