# Problems building

**URL:** <https://community.nianticspatial.com/t/problems-building/2023>\
**Category:** I'm Stuck\
**Created:** [May 23, 2022, 10:09pm UTC](https://community.nianticspatial.com/t/problems-building/2023 "2022-05-23T22:09:48Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_Rubalcava](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jorge\_Rubalcava](https://community.nianticspatial.com/u/Jorge_Rubalcava)\
**Post date:** [May 23, 2022, 10:09pm UTC](https://community.nianticspatial.com/t/problems-building/2023/1 "2022-05-23T22:09:48Z")

</div>

_Include the following details (edit as applicable):_  
ARDK Documentation / Unity Example Package /

- **Device type & OS version** / iOS / Other Ex. iPhone SE + on iOS 15.4.1
- **Host machine & OS version** : Mac on Monterrey 12.3
- **Issue Environment** : Unity Remote / Unity Mock
- **Xcode version** : 13.3
- **ARDK version** : 1.3.1
- **Unity version** : 2020.3.31f1

Description of the issue: Build completed with a result of ‘Failed’ in 18 seconds (18322 ms)  
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors  
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002be] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:190  
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95  
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

---

<div class="post-metadata">

**Author:** ![BBIT-Solutions](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@BBIT-Solutions](https://community.nianticspatial.com/u/BBIT-Solutions)\
**Post date:** [May 23, 2022, 10:34pm UTC](https://community.nianticspatial.com/t/problems-building/2023/2 "2022-05-23T22:34:16Z")

</div>

Are you maybe using Mono as Scripting Backend? If yes, you should probably try to choose IL2CPP according to the [documentation](https://lightship.dev/docs/ardk/ardk_fundamentals/building_android.html#steps)

---

<div class="post-metadata">

**Author:** ![Jorge\_Rubalcava](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jorge\_Rubalcava](https://community.nianticspatial.com/u/Jorge_Rubalcava)\
**Post date:** [May 24, 2022, 12:37am UTC](https://community.nianticspatial.com/t/problems-building/2023/3 "2022-05-24T00:37:02Z")

</div>

Thanks,

I’ll try the way you mention.

Regards.

---

<div class="post-metadata">

**Author:** ![rob\_link](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/rob_link/32/1176_2.png) [@rob\_link](https://community.nianticspatial.com/u/rob_link)\
**Post date:** [May 24, 2022, 4:49pm UTC](https://community.nianticspatial.com/t/problems-building/2023/4 "2022-05-24T16:49:13Z")

</div>

Hello Jorge – Welcome to the Lightship development community!

We were able to replicate the error messages you reported by leaving the **Camera Usage Description** and **Location Usage Description** fields blank under **Edit \> Project Settings \> Player \> Other Settings \> Configuration**.

![](https://lh3.googleusercontent.com/5txE5_efYXA24tWlCJvqzt-tTTFJA1Osa7_vxrf1MhvfMO0JIK8rvngyqbqp2enzOEVw__ZbwRspi0lRHh0mxWVCUmQbo5yBMXL2iDX0edzrw4eg93xdiOx-zSMn389fobcY74yl0qQcxrZx5Q)  
In order to build to your iOS device, the **Camera Usage Description** and **Location Usage Description** fields need to contain a descriptive message such as “Required for AR”.

![](https://lh5.googleusercontent.com/hAP4A98mTN_aiWgwXJhtKlggpz-TLfhhNodneyZoPhQRlRTkdShU2YXUOpUt1l7BuzyajgH8qgBSL8LwktADRAcjAIaTfTUf6-k84X8GjiPHUCdzcDX-jpOqnUQxWw2Rczhk6zALQlmEu64gVg)

Can you confirm that your project’s **Camera Usage Description** and **Location Usage Description** fields contain a descriptive message?

---

<div class="post-metadata">

**Author:** ![rob\_link](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/rob_link/32/1176_2.png) [@rob\_link](https://community.nianticspatial.com/u/rob_link)\
**Post date:** [June 10, 2022, 6:41pm UTC](https://community.nianticspatial.com/t/problems-building/2023/5 "2022-06-10T18:41:54Z")

</div>

Hello Jorge,

Have you been able to resolve the errors by adding descriptions to the **Camera Usage Description** and **Location Usage Description** fields?

If you’re still experiencing the errors, I’d be happy to help troubleshoot the issue further.

---

<div class="post-metadata">

**Author:** ![Jorge\_Rubalcava](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jorge\_Rubalcava](https://community.nianticspatial.com/u/Jorge_Rubalcava)\
**Post date:** [June 23, 2022, 12:55am UTC](https://community.nianticspatial.com/t/problems-building/2023/7 "2022-06-23T00:55:54Z")

</div>

Continuing the discussion from [Problems building](https://community.nianticspatial.com/t/problems-building/2023/5):

Lightship tutorial video says to write “Lightship ARDK” both at the Camera Usage Description and the Location Usage Description. Do I need to change for Required AR ínstead?

---

<div class="post-metadata">

**Author:** ![Jorge\_Rubalcava](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jorge\_Rubalcava](https://community.nianticspatial.com/u/Jorge_Rubalcava)\
**Post date:** [June 23, 2022, 3:56pm UTC](https://community.nianticspatial.com/t/problems-building/2023/8 "2022-06-23T15:56:52Z")

</div>

By the way I also downloaded to my project the new ardk-2.0.0- unitypackage and the 2.0.0 examples but it didn’t work, but not only that now I have new errors, take a look at my attachments.

 ![Capture1](https://us1.discourse-cdn.com/niantic/original/1X/e2ca85762d2940104c04bef9a343f7d3154521ce.jpeg)  
 ![Capture2](https://us1.discourse-cdn.com/niantic/original/1X/cd6493b651eb71def74e276d45d12706de8182e6.jpeg)

---

<div class="post-metadata">

**Author:** ![rob\_link](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/rob_link/32/1176_2.png) [@rob\_link](https://community.nianticspatial.com/u/rob_link)\
**Post date:** [June 23, 2022, 11:59pm UTC](https://community.nianticspatial.com/t/problems-building/2023/9 "2022-06-23T23:59:14Z")

</div>

> Lightship tutorial video says to write “Lightship ARDK” both at the Camera Usage Description and the Location Usage Description. Do I need to change for Required AR ínstead?

You may include any description of your choice in the `Camera Usage Description` and `Location Usage Description` fields, but they must be understandable by your players. Also, apps submitted to Apple for review may be rejected if the descriptions do not accurately identify why you are requesting camera and location permissions.

> By the way I also downloaded to my project the new ardk-2.0.0- unitypackage and the 2.0.0 examples but it didn’t work, but not only that now I have new errors, take a look at my attachments.

As for the authentication errors, you will want to follow the **[Authentication](https://lightship.dev/docs/ardk/ardk_fundamentals/authentication.html)** steps in the Lightship documentation to resolve these errors. If you follow those steps, you should have a single `ARDKAuthConfig` object with an API key in your project hierarchy, located in a `/Resources/ARDK` folder which you may need to create. Also, you may need to delete a loose `ARDKAuthConfig` object that comes packaged with ARDK, and you can find that by searching for “ARDKAuthConfig” in the project view.

---

<div class="post-metadata">

**Author:** ![Jorge\_Rubalcava](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jorge\_Rubalcava](https://community.nianticspatial.com/u/Jorge_Rubalcava)\
**Post date:** [June 24, 2022, 6:21pm UTC](https://community.nianticspatial.com/t/problems-building/2023/10 "2022-06-24T18:21:13Z")

</div>

Thanks I solved the Authentication problem. I tried a new tutorial (placement) but once again I have troubles with the building. When I run the placement project in Unity it works fine, but when I try to build it cant’t do it and throw me back the following errors again. (Watch the attachments).

 ![Build errors Capture](https://us1.discourse-cdn.com/niantic/original/1X/3752f10d5a69702002c663ba87004aa79e65d9bc.jpeg)

---

<div class="post-metadata">

**Author:** ![rob\_link](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/rob_link/32/1176_2.png) [@rob\_link](https://community.nianticspatial.com/u/rob_link)\
**Post date:** [June 24, 2022, 9:48pm UTC](https://community.nianticspatial.com/t/problems-building/2023/11 "2022-06-24T21:48:52Z")

</div>

Hi Jorge,

We searched around the web, and it seems that Unity may throw this error while attempting to build if your project is located on a drive that isn’t your machine’s primary drive.

Can you confirm that your Unity project files are located on your computer’s primary local drive, and not located on a secondary external drive or USB stick? And if your project is located on a secondary drive, could you try moving your project files to your primary drive and building?

---

<div class="post-metadata">

**Author:** ![Jorge\_Rubalcava](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jorge\_Rubalcava](https://community.nianticspatial.com/u/Jorge_Rubalcava)\
**Post date:** [June 24, 2022, 9:54pm UTC](https://community.nianticspatial.com/t/problems-building/2023/12 "2022-06-24T21:54:20Z")

</div>

Rob, my Unity project files are not located on my computer’s primary local drive those are on an external hard drive. I’ll try to move it to my computer’s primary local drive and let you know if it works. Thanks

---

<div class="post-metadata">

**Author:** ![Jorge\_Rubalcava](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jorge\_Rubalcava](https://community.nianticspatial.com/u/Jorge_Rubalcava)\
**Post date:** [June 24, 2022, 11:03pm UTC](https://community.nianticspatial.com/t/problems-building/2023/13 "2022-06-24T23:03:00Z")

</div>

It worked I changed my project to my computer’s local drive and could build. Now I need to solve another problem my phone camera just shows me the skybox and nothing else. My Xcode shows these problems!

 ![Build troubles on Xcode](https://us1.discourse-cdn.com/niantic/original/1X/271fc64b22c548a657b26a74007022e7b147b608.jpeg)

---

<div class="post-metadata">

**Author:** ![rob\_link](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/rob_link/32/1176_2.png) [@rob\_link](https://community.nianticspatial.com/u/rob_link)\
**Post date:** [June 25, 2022, 1:01am UTC](https://community.nianticspatial.com/t/problems-building/2023/14 "2022-06-25T01:01:35Z")

</div>

Can you confirm the following settings on your Camera component?

- Clear Flags: Solid Color
- Background: Black

![camera](https://us1.discourse-cdn.com/niantic/original/1X/672af111afecd6f4efd55f6eb70793d654bacc21.png)

---

<div class="post-metadata">

**Author:** ![Jorge\_Rubalcava](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jorge\_Rubalcava](https://community.nianticspatial.com/u/Jorge_Rubalcava)\
**Post date:** [June 27, 2022, 6:05pm UTC](https://community.nianticspatial.com/t/problems-building/2023/15 "2022-06-27T18:05:54Z")

</div>

Yes Rob, my camera settings are exactly as the ones in the image you sent

---

<div class="post-metadata">

**Author:** ![Jorge\_Rubalcava](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jorge\_Rubalcava](https://community.nianticspatial.com/u/Jorge_Rubalcava)\
**Post date:** [June 27, 2022, 7:10pm UTC](https://community.nianticspatial.com/t/problems-building/2023/16 "2022-06-27T19:10:40Z")

</div>

Rob I found the problem was so simple, I was building the Sample scene instead the Placement Scene, thanks for your patient.

---

<div class="post-metadata">

**Author:** ![Maverick\_Niantic](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@Maverick\_Niantic](https://community.nianticspatial.com/u/Maverick_Niantic)\
**Post date:** [March 5, 2026, 11:50pm UTC](https://community.nianticspatial.com/t/problems-building/2023/17 "2026-03-05T23:50:11Z")

</div>

Closed on March 5, 2026, 11:50pm UTC

Age
