Include the following details while filing a bug report (edit as applicable):
- Host machine & OS version: Mac M4 OS 26
- Issue Environment : On Device, iPhone 16 Pro, OS 26
- Xcode version: 26
- ARDK version: 3.16
- Unity version: Unity 6 LTS .53f1
Bug reproduction steps:
When building a project using the versions above to device, Unity strips Object detection (on medium and high). Setting the stripping level to low resolves this issue.
MissingMethodException: Default constructor not found for type Niantic.Lightship.AR.Subsystems.ObjectDetection.LightshipObjectDetectionSubsystem+LightshipObjectDetectionProvider
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SubsystemsImplementation.SubsystemDescriptorWithProvider`2[TSubsystem,TProvider].CreateProvider () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SubsystemsImplementation.SubsystemDescriptorWithProvider`2[TSubsystem,TProvider].Create () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.XR.Management.XRLoaderHelper.CreateSubsystem[TDescriptor,TSubsystem] (System.Collections.Generic.List`1[T] descriptors, System.String id) [0x00000] in <00000000000000000000000000000000>:0
at Niantic.Lightship.AR.Loader.NativeLoaderHelper.Initialize (Niantic.Lightship.AR.Loader.ILightshipInternalLoaderSupport loader, System.Boolean isLidarSupported) [0x00000] in <00000000000000000000000000000000>:0
at Niantic.Lightship.AR.Loader.LightshipLoaderHelper.Initialize (Niantic.Lightship.AR.Loader.ILightshipInternalLoaderSupport loader) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.XR.Management.XRManagerSettings.InitializeLoaderSync () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.XR.Management.XRGeneralSettings.InitXRSDK () [0x00000] in <00000000000000000000000000000000>:0