# iOS error on camera open

**URL:** <https://community.thunkable.com/t/ios-error-on-camera-open/1840301>\
**Category:** Questions about Thunkable X\
**Created:** [April 20, 2022, 1:51pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301 "2022-04-20T13:51:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [April 20, 2022, 1:51pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/1 "2022-04-20T13:51:46Z")

</div>

On an iOS 12.5.5 at camera open on a button click, this error pops-up:

 ![error](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/7/6741bf3cc801686cbdaddf0f49b998fd03a1773d.jpeg)  
Any ideas?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 20, 2022, 5:46pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/2 "2022-04-20T17:46:29Z")

</div>

You need to provide more information.

Are you running the app as a standalone app (downloaded and installed in the mobile)?  
Are you running the app from Thunkable App?  
Is the camera working fine with other apps?

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [April 22, 2022, 6:48pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/3 "2022-04-22T18:48:14Z")

</div>

Thanks for you reply.  
I’m running an app published on the AppStore.  
The camera is working fine with other apps.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 22, 2022, 6:51pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/4 "2022-04-22T18:51:12Z")

</div>

Do you mean your own Thunkable project that you published in App Store and now gives this error?

What about the project itself? Does it work when you run it from the Thunkable Companion App?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 22, 2022, 7:23pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/5 "2022-04-22T19:23:48Z")

</div>

Can you post a screenshot of the blocks you’re using to access the camera?

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [April 26, 2022, 11:51am UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/6 "2022-04-26T11:51:50Z")

</div>

Yes, the app published on AppStore is throwing this error on some devices or some iOS versions, not in all cenarios.

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [April 26, 2022, 11:52am UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/7 "2022-04-26T11:52:12Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/5/357dc1cb8b7bb63f7aedaf729d08e2f1bb7be626.png)

---

<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:** [April 26, 2022, 11:57am UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/8 "2022-04-26T11:57:36Z")

</div>

What kind of device is this happening on? I can’t duplicate this on my iOS device. (iPhone 13 pro max) or my iPad (not sure the model atm. Bought new 2 years ago)

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [April 26, 2022, 12:03pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/9 "2022-04-26T12:03:54Z")

</div>

I have noticed this issue on a iPhone 7 with iOS 12.5.5.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 26, 2022, 5:14pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/10 "2022-04-26T17:14:08Z")

</div>

What happens when you Live Test this in Thunkable Live and take a photo? Do you get an error or does the photo you took appear above the button?

[https://x.thunkable.com/copy/bf6539e6aa0904faf3e8ee07f4c0bcea](https://x.thunkable.com/copy/bf6539e6aa0904faf3e8ee07f4c0bcea)

The error message you posted above makes me think it’s an issue with the Alert component but I could be completely wrong!

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 26, 2022, 5:17pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/11 "2022-04-26T17:17:04Z")

</div>

> [@tatiang](#):
>
> The error message you posted above makes me think it’s an issue with the Alert component but I could be completely wrong!

The create button object is wrong. There should be **two** fields for each button but the image is showing one field only.

---

<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:** [April 26, 2022, 5:39pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/12 "2022-04-26T17:39:57Z")

</div>

> [@muneer](#):
>
> ct is wrong.

Hey @assistsolucoes can you share the project causing this issue with me via dm?

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [April 27, 2022, 10:44pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/13 "2022-04-27T22:44:43Z")

</div>

The photo appears above the button.  
But my device is running iOS 15.4.1

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [April 27, 2022, 10:46pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/14 "2022-04-27T22:46:10Z")

</div>

You’re right. I fix it… but can’t test it.

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [April 27, 2022, 10:51pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/15 "2022-04-27T22:51:41Z")

</div>

Yes, I already DM you with the link.  
Tks

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 27, 2022, 11:04pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/16 "2022-04-27T23:04:51Z")

</div>

You said the issue occurred on an iPhone 7 running iOS 12.5.5 but now you’re saying it worked on a device running iOS 15.4.1. I’m confused. What happens when you Live Test the project link I posted on your iPhone 7 running iOS 12.5.5?

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [April 28, 2022, 11:19am UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/17 "2022-04-28T11:19:38Z")

</div>

Sorry if I wasn’t clear. My device is running iOS 15.4.1. The issue ocurred on a user’s device with iOS 12.5.5 that I don’t have access… I just received the crash print and I’m trying to figured it out what is causing the issue.  
I hope that’s what @muneer said about the missing property “Style” of the Alert buttons. 🤞  
But if any of you guys have other ideas, I appreciate.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 28, 2022, 4:04pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/18 "2022-04-28T16:04:09Z")

</div>

I would fix the Alert and see if the error goes away. I don’t think it’s related to the camera.

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [April 28, 2022, 4:43pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/19 "2022-04-28T16:43:10Z")

</div>

Tks, I’ll give it a try.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 27, 2022, 4:43pm UTC](https://community.thunkable.com/t/ios-error-on-camera-open/1840301/20 "2022-07-27T16:43:17Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
