Search Issue Tracker

Fixed

Fixed in 4.2.10, 5.1.2, 6.0.0-pre.5

Votes

0

Found in [Package]

4.2.2

5.1.0-pre.9

6.0.0-pre.5

Issue ID

ARKB-61

Regression

Yes

[iOS] "Failed to load session subsystem." is thrown in Xcode when the Project is built through terminal with no Library

Package: ARKit

-

How to reproduce:
1. Extract the attached Project "unity-linux-reprod-main"
2. Open the terminal and run the following command: "<PATH_TO_UNITY> -batchmode -nographics -quit -logFile - -releaseCodeOptimization -EnableCacheServer -executeMethod GHA.Builder.Build -projectPath <PATH_TO_PROJECT>"
3. Build and Run the generated Xcode Project on an iOS device
4. Observe the Xcode Console

Expected result: No errors are thrown in the Xcode Console and the Player shows the device's camera view
Actual result: "Failed to load session subsystem." can be seen in the Xcode Console and the Player shows a black screen

Reproducible with: 4.2.2 (2022.1.0a2), 5.0.6 (2022.3.6f1, 2023.1.7f1), 5.1.0-pre.9 (2023.2.0b3)
Not reproducible with: 4.2.2 (2022.1.0a1), 5.0.6 (2021.3.29f1)

Reproduced on:
- MacOS (12.6.6, Intel); iPhone 13 (iOS 15.0)
- Linux (user-supplied information)

Notes:
- Running the terminal command again produces a working build on macOS, however, deleting the Library causes the issue to reproduce again
- Does not reproduce when Project is built through the Editor Build Window
- Full error thrown in Xcode:
Failed to load session subsystem.
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.XR.ARKit.ARKitLoader:Initialize()
UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync()
UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK()

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.