# Black screen iOS example project

**URL:** <https://community.nianticspatial.com/t/black-screen-ios-example-project/2583>\
**Category:** I'm Stuck\
**Created:** [September 4, 2022, 8:19pm UTC](https://community.nianticspatial.com/t/black-screen-ios-example-project/2583 "2022-09-04T20:19:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jelmer\_Verhoog](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Jelmer\_Verhoog](https://community.nianticspatial.com/u/Jelmer_Verhoog)\
**Post date:** [September 4, 2022, 8:19pm UTC](https://community.nianticspatial.com/t/black-screen-ios-example-project/2583/1 "2022-09-04T20:19:01Z")

</div>

- **Issue category** : AR(kit?)
- **Device type & OS version** : iOS15.6.1, iPhone 12 PRO
- **Host machine & OS version** : Intel Macbook pro
- **Issue Environment** : On Device
- **Xcode version** :13.4.1
- **ARDK version** :2.1.0
- **Unity version** : 2021.3.7 with URP!

Description of the issue:  
I have made a bunch of ARDK apps before. But now I’m trying the networking with ARDK 2.1.0 and get the infamous black camera issue when trying the ARNetworking example scene.  
Everything works fine otherwise, even networking. What am I missing?  
PLISt text is set, app even asks for camera permissions when starting.  
Seems to be some rendering issue. URP can be the problem, but I don´t see what I am forgetting…

In the XCode log it says some weird things, not sure if relevant:  
_Setting UIViewControllerBasedStatusBarAppearance to NO is no longer supported._

_Apple actively discourages that, and all application-wide methods of changing status bar appearance are deprecated_

_→ applicationDidBecomeActive()_

_[Subsystems] Discovering subsystems at path /private/var/containers/Bundle/Application/9F416088-7F0B-4360-9030-231F968D1E06/Amodelofmixedreality.app/Data/UnitySubsystems_

_[Subsystems] No descriptors matched for examples in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json._

_[Subsystems] 1 ‘inputs’ descriptors matched in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json_

_[Subsystems] No descriptors matched for displays in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json._

_[Subsystems] 1 ‘meshings’ descriptors matched in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json_

_GfxDevice: creating device client; threaded=1; jobified=1_

_Initializing Metal device caps: Apple A14 GPU_

_Initialize engine version: 2021.3.7f1 (24e8595d6d43)_

_XRGeneral Settings awakening…_

_UnityEngine.XR.Management.XRGeneralSettings:Awake()_

URP settings are also according to the documentation:

 ![Screenshot 2022-09-04 at 22.37.00](https://us1.discourse-cdn.com/niantic/original/2X/7/70c800221d8ad6fa9966893febe364151d203228.png)

 ![Screenshot 2022-09-04 at 22.38.27](https://us1.discourse-cdn.com/niantic/original/2X/c/cff1e92fe4419df6f80ec4777c652395e297e78c.jpeg)

---

<div class="post-metadata">

**Author:** ![Dylan\_Smit](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/dylan_smit/32/562_2.png) [@Dylan\_Smit](https://community.nianticspatial.com/u/Dylan_Smit)\
**Post date:** [September 4, 2022, 9:44pm UTC](https://community.nianticspatial.com/t/black-screen-ios-example-project/2583/2 "2022-09-04T21:44:09Z")

</div>

1. Update Unity since this is a new project. This version is very old already.
2. I saw in the logs XR manager. Do you use it? ARDK does not need the XR plugin manager. In the package manager uninstall it and uninstall arcore/arkit/arfoundation/xr management if they are there. Ardk has this in the package

---

<div class="post-metadata">

**Author:** ![Umaiya\_Doddamani1](https://avatars.discourse-cdn.com/v4/letter/u/439d5e/32.png) [@Umaiya\_Doddamani1](https://community.nianticspatial.com/u/Umaiya_Doddamani1)\
**Post date:** [September 5, 2022, 7:32pm UTC](https://community.nianticspatial.com/t/black-screen-ios-example-project/2583/3 "2022-09-05T19:32:33Z")

</div>

Hello Jelmer,

We were unable to reproduce the issue you are observing. The black screen issue was a known issue earlier and has been resolved with the recent release of ARDK.

Generally, staying up to date with the most recent version, and on the supported version of Unity will provide the best results.  
Can you update to the latest version here: [Sign in – Niantic Lightship](https://lightship.dev/account/downloads).  
Also please refer to [this](https://lightship.dev/docs/ardk/ar_world_tracking/basic_placement_tutorial.html#troubleshooting-black-screen-or-other-issues) link to help with the black screen issue.

Let me know if that works.

---

<div class="post-metadata">

**Author:** ![Jelmer\_Verhoog](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Jelmer\_Verhoog](https://community.nianticspatial.com/u/Jelmer_Verhoog)\
**Post date:** [September 15, 2022, 7:59pm UTC](https://community.nianticspatial.com/t/black-screen-ios-example-project/2583/4 "2022-09-15T19:59:50Z")

</div>

Still facing this issue, also with a new project:  
I started a new Unity2021.3.9 URP project, added the ARDK2.2, changed the Scriptable Render Pipeline Settings to use the ArdkUrpAsset, added Camera useage description.  
But still there is only a black screen, and the cube (the camera is tracked in AR, so the whole AR system is working, just no background video)

To me it seems that ARDK + URP is broken. Any insights what I might be missing?

 ![Screenshot 2022-09-15 at 22.04.58](https://us1.discourse-cdn.com/niantic/original/2X/e/e743f233ae4a527da2289aa60641d72cb3d006a1.jpeg)  
 ![Screenshot 2022-09-15 at 22.05.08](https://us1.discourse-cdn.com/niantic/original/2X/7/7947f15fa0675a24f908b79389a02da0a8737625.jpeg)  
 ![Screenshot 2022-09-15 at 22.05.01](https://us1.discourse-cdn.com/niantic/original/2X/0/0bd014be78b7ab8e86e39fc4d101836fb50016a3.jpeg)

result on iphone 12 pro, iOS16:

 ![IMG_6E937816E033-1](https://us1.discourse-cdn.com/niantic/original/2X/a/a582cf869d5faaf3bc0e4f9647cc3c75065bf4bd.jpeg)

---

<div class="post-metadata">

**Author:** ![Umaiya\_Doddamani1](https://avatars.discourse-cdn.com/v4/letter/u/439d5e/32.png) [@Umaiya\_Doddamani1](https://community.nianticspatial.com/u/Umaiya_Doddamani1)\
**Post date:** [September 15, 2022, 10:56pm UTC](https://community.nianticspatial.com/t/black-screen-ios-example-project/2583/5 "2022-09-15T22:56:30Z")

</div>

Hello Jelmer,

Thanks for sharing the screenshots.  
Can you please try using the following steps?

1. Create a new Unity project using the 3D (URP) template.
2. Import the latest ARDK version with ARDK examples. unitypackage into your project.
3. Add your API key to the ArdkAuthConfig asset.
4. In Build Settings, switch the platform to iOS.
5. Open Player Settings and add a Camera Usage Description and Location Usage Description.
6. Go to Project Settings \> Graphics and change the Scriptable Render Pipeline Settings to ArdkUrpAsset (Universal Render Pipeline Asset).
7. Go to Project Settings \> Quality.
8. Select Performant, and then change the Render Pipeline Asset to ArdkUrpAsset (Universal Render Pipeline Asset).
9. Repeat the previous step for the Balanced and High Fidelity quality settings.
10. In Build Settings, remove any Scenes In Build that are present, then add the PlaneAnchors scene to the Scenes In Build.
11. Build the app and deploy it to your device, and then launch and test it.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/system/32/13_2.png) [@system](https://community.nianticspatial.com/u/system)\
**Post date:** [September 16, 2022, 8:51am UTC](https://community.nianticspatial.com/t/black-screen-ios-example-project/2583/6 "2022-09-16T08:51:54Z")

</div>

Closed on September 16, 2022, 8:51am UTC

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