# I get an error when opening the camera the second time onwards. (iOS)

**URL:** <https://forum.deepar.ai/t/i-get-an-error-when-opening-the-camera-the-second-time-onwards-ios/114>\
**Category:** Help & Questions\
**Created:** [October 13, 2022, 9:36am UTC](https://forum.deepar.ai/t/i-get-an-error-when-opening-the-camera-the-second-time-onwards-ios/114 "2022-10-13T09:36:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamtidz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/iamtidz/32/145_2.png) [@iamtidz](https://forum.deepar.ai/u/iamtidz)\
**Post date:** [October 13, 2022, 9:36am UTC](https://forum.deepar.ai/t/i-get-an-error-when-opening-the-camera-the-second-time-onwards-ios/114/1 "2022-10-13T09:36:55Z")

</div>

iOS (Swift)  
I use DeepAR, ARView, CameraController.  
On first opening I was working normally,  
buy I get an error when opening the camera view the second time onwards. DeepAR camera not working.

Error :  
**[assertion] Error acquiring assertion: \<Error Domain=RBSServiceErrorDomain Code=1 “target is not running or doesn’t have entitlement com.apple.runningboard.assertions.webkit” UserInfo={NSLocalizedFailureReason=target is not running or doesn’t have entitlement com.apple.runningboard.assertions.webkit}\>**

more detail in the attachment

 ![Screen Shot 2022-10-13 at 16.34.45](https://europe1.discourse-cdn.com/flex017/uploads/deepar/original/1X/f3f8c00e882c4aee937d0b8067fe3b7bcbc67666.png)

---

<div class="post-metadata">

**Author:** ![jelena](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/jelena/32/14_2.png) [@jelena](https://forum.deepar.ai/u/jelena)\
**Post date:** [October 13, 2022, 11:27am UTC](https://forum.deepar.ai/t/i-get-an-error-when-opening-the-camera-the-second-time-onwards-ios/114/2 "2022-10-13T11:27:22Z")

</div>

Hi @iamtid, can you tell us more about the workflow.

Usually if you reinitialise Camera Controller DeepAR SDK needs to be fully shutdown and reinitialised as well

```auto
    [self.deepAR shutdown];
    if (self.arview) {
        [self.arview removeFromSuperview];
    }

```

---

<div class="post-metadata">

**Author:** ![iamtidz](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/iamtidz/32/145_2.png) [@iamtidz](https://forum.deepar.ai/u/iamtidz)\
**Post date:** [October 17, 2022, 1:40pm UTC](https://forum.deepar.ai/t/i-get-an-error-when-opening-the-camera-the-second-time-onwards-ios/114/3 "2022-10-17T13:40:57Z")

</div>

My problem is solved. Thank you very much for your reply.
