mobileImagePicker crash

When I try to access Photos with MobileImagePicker the app crashes.

Hi @Herman_Dubach,

Do you have “Photos Access” enabled under iOS > Capabilities?

Thanks for your reaction. I don’t know where I can find this. My apps have access to Photos for years now, suddenly it doesn’t work anymore.

Select iOS under Build Settings in the project navigator

In the inspector, click the gear icon in the segmented button at the top:

How easy. Thanks.

1 Like

Some of my users are reporting the same, despite having this permission set in the plist

I have exception handling turned on, but the app just dies. Only for some people, and works fine in simulator.

What else can I check?

Hi Jeff,

I recently discovered two crashes when using MobileImagePicker.

The first one happens when switching from Source.Photos to Source.Camera. If your app uses the same ImagePicker for both photos and camera, I would advise having one distinct ImagePicker for each source type.

The second crash happens when using Source.Camera and selecting a picture that has no metadata, such as a picture saved from an external app (WhatsApp for example).

Both crashes are now marked as fixed for 2026r2

https://tracker.xojo.com/xojoinc/xojo/-/issues/81434

https://tracker.xojo.com/xojoinc/xojo/-/issues/81433

I have completely disabled selecting a picture from Source.Photos until my app is released with Xojo 2026r2. As a workaround, you could use PHPickerViewControllerMBS from MBS plugins.
It is a bit difficult to use so here is an example project :slight_smile:

ImagePicker MBS.xojo_binary_project.zip (7.8 KB)

1 Like

You’re not kidding! :slight_smile: