# \[Solved\] App crashes when using Image Picker in iOS 12 \[Aug 2022\]

**URL:** <https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974>\
**Category:** Issues / Bugs\
**Tags:** image, photolibrary\
**Created:** [August 6, 2022, 3:35pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974 "2022-08-06T15:35:51Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [August 6, 2022, 3:35pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/1 "2022-08-06T15:35:51Z")

</div>

When using the Image Picker / Photo Library component, it gives me an error and the companion crashes.

Error message:

 ![error](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex015/uploads/thunkable/original/3X/4/b/4be21d4b04098e3ef5533912b35d84809dc3bfd3.jpeg)

My app is simply trying to pick an image… upon retrying same error occurs

Device: iPhone 6Plus  
iOS Version 12.5.5

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [August 6, 2022, 3:42pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/2 "2022-08-06T15:42:24Z")

</div>

Edit: Tried on a test project. Same Error.

Testing on Android: Works as expected. Seems to be an iOS problem.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [August 6, 2022, 4:01pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/3 "2022-08-06T16:01:52Z")

</div>

Hi 👋 @sai1910

Sorry you’re seeing this today. Can you share a minimal example of this issue?

Is anyone else seeing this?

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [August 7, 2022, 3:32am UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/4 "2022-08-07T03:32:24Z")

</div>

All I’d tried with was:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/c/9c169522b9189e1e8010052db826fc08b2d436d3.jpeg)

Which gave the issue.

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [August 7, 2022, 4:27am UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/5 "2022-08-07T04:27:13Z")

</div>

Can you create a minimal example? It’ll help Jared and his team fix the issue. I have an image picker in my app and just tested and it works fine for me.

> [@Why Thunkable's team asks for Minimal Examples and what they are](https://community.thunkable.com/t/why-thunkables-team-asks-for-minimal-examples-and-what-they-are/1669259):
>
> The Why? I used to get really annoyed at this request. Now though, in a support role, I totally understand and what to share our point of view on this and also to share a helpful article pulled from [StackOverflow.com](https://stackoverflow.com/help/minimal-reproducible-example). Basically the why is because this helps us help you. Videos and screenshots are great help for chat/forum support, but if you are at the point that staff need to jump in cause something isn’t working, staff not only want to see the issue but we also want to recreate the issue an…

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [August 7, 2022, 1:56pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/6 "2022-08-07T13:56:07Z")

</div>

Here: [test](https://x.thunkable.com/projectPage/62ee8b490f549c0223ff9366).

> [@zander](#):
>
> I have an image picker in my app and just tested and it works fine for me.

I think the problem may be specific to my device (iPhone 6Plus, iOS 12.5.5).

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [August 7, 2022, 2:06pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/7 "2022-08-07T14:06:12Z")

</div>

Just tested using your project, it worked fine for me. So it might just be your phone. Do you have the most up to date thunkable companion app?

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [August 7, 2022, 2:16pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/8 "2022-08-07T14:16:38Z")

</div>

Yes, the companion is up to date.

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [August 7, 2022, 2:44pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/9 "2022-08-07T14:44:47Z")

</div>

I also just tested it on an iPhone 11 Pro and it worked out fine. So it night be something to do with your phone. Do you have the most up to date iOS? (Trying to find things to help) Also maybe restart your phone 😀

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [August 10, 2022, 11:43am UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/10 "2022-08-10T11:43:47Z")

</div>

iPhone 6plus only supports up till IOS 12.5. Can’t update further than that.

Will try restarting.

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [August 10, 2022, 12:57pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/11 "2022-08-10T12:57:57Z")

</div>

Found this on GitHub. Seems to be the same issue. How can this be fixed on thunkable?

> <https://github.com/expo/expo/issues/14903>
>
> \### Summary
> 
> When calling \`ImagePicker.launchImageLibraryAsync\` on \`iPhone 6 iOS… 12.5.5\` the app crashes. This has NOT been reproducible on:
> 
> \- \`iPad Pro 14.6\`
> \- \`iPad Air 2 iOS 15.0\`
> \- \`iPhone 7 iOS 15.0.2\`
> 
> There was no problem prior to \`SDK 43\`
> 
> \### Managed or bare workflow? If you have \`ios/\` or \`android/\` directories in your project, the answer is bare!
> 
> managed
> 
> \### What platform(s) does this occur on?
> 
> iOS
> 
> \### SDK Version (managed workflow only)
> 
> 43
> 
> \### Environment
> 
> Expo CLI 4.12.8 environment info:
> System:
> OS: Linux 5.11 Ubuntu 21.04 (Hirsute Hippo)
> Shell: 5.1.4 - /bin/bash
> Binaries:
> Node: 15.5.1 - /usr/local/bin/node
> Yarn: 1.22.17 - /usr/local/bin/yarn
> npm: 7.3.0 - /usr/local/bin/npm
> Watchman: 4.9.0 - /usr/local/bin/watchman
> SDKs:
> Android SDK:
> API Levels: 22, 23, 24, 25, 26, 28
> Build Tools: 23.0.1, 23.0.2, 25.0.2, 25.0.3, 26.0.1, 26.0.3, 27.0.3, 28.0.3
> System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
> npmPackages:
> expo: ^43.0.0 =\> 43.0.0 
> react: 17.0.1 =\> 17.0.1 
> react-native: 0.64.2 =\> 0.64.2 
> npmGlobalPackages:
> expo-cli: 4.12.8
> Expo Workflow: managed
> 
> 
> \### Reproducible demo or steps to reproduce from a blank project
> 
> Should be reproducible using an iPhone 6 with iOS 12.5.5 and opening the Snack below. This Snack is the same as the Snack from the ImagePicker documentation (https://docs.expo.dev/versions/latest/sdk/imagepicker). We have not been able to reproduce on any of the other iOS versions we have available (iPad Pro 14.6, iPad Air 2 iOS 15.0 & iPhone 7 iOS 15.0.2)
> 
> https://snack.expo.dev/@qinspect/image-picker

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [August 12, 2022, 12:53pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/12 "2022-08-12T12:53:06Z")

</div>

Thunkable Team, any update on this ??

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [August 15, 2022, 12:48am UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/13 "2022-08-15T00:48:09Z")

</div>

Have you been able to reproduce this on any other device besides the iphone you own?  
I know we all don’t own multiple devices (I don’t) but perhaps have people you know try it?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [August 15, 2022, 6:11pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/14 "2022-08-15T18:11:35Z")

</div>

Hey @sai1910

We recently discontinued support for iOS 12 in order to upgrade some other parts of the build process. Sorry for the delay to a response. So sorry for the inconvenience.

What kind of app are you building? Are a lot of users experiencing this?

---

<div class="post-metadata">

**Author:** ![sai1910](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sai1910](https://community.thunkable.com/u/sai1910)\
**Post date:** [August 20, 2022, 5:13am UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/15 "2022-08-20T05:13:53Z")

</div>

Currently just testing the app. It’ll be used by many users, but the ImagePicker functionality is only for the admins of the App. So hopefully this won’t be a big issue.

> [@zander](#):
>
> any other device

No, works perfectly on Android and on iOS 14 device.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:13pm UTC](https://community.thunkable.com/t/solved-app-crashes-when-using-image-picker-in-ios-12-aug-2022/1989974/16 "2024-11-08T13:13:02Z")

</div>


