Reputation: 1
I am developing an app using Image Tracking in Unity PolySpatial.
I'm using Unity 6000.0.33f1 on Apple Silicon, XCode 16.2, and PolySpatial visionOS 2.1.2.
Image Tracking works in Unity's Play To Device mode, but it doesn't work when I use Xcode to deploy it to the device. Even Unity's sample scene for Image Tracking doesn't work when I deploy it.
The Reference Image Library should be empty, but Unity doesn't think it's empty.
This is the error I get:
Attempting to start visionOS image tracking provider with an empty library.
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
UnityEngine.XR.VisionOS.VisionOSImageTrackingProvider:TryStartNativeSession(Feature) (at ./Library/PackageCache/com.unity.xr.visionos/Runtime/VisionOSImageTrackingSubsystem.cs:104)
UnityEngine.XR.VisionOS.VisionOSSessionProvider:TryStartProviders(Feature) (at ./Library/PackageCache/com.unity.xr.visionos/Runtime/VisionOSSessionSubsystem.cs:269)
UnityEngine.XR.VisionOS.VisionOSSessionProvider:Update(XRSessionUpdateParams, Configuration) (at ./Library/PackageCache/com.unity.xr.visionos/Runtime/VisionOSSessionSubsystem.cs:151)
UnityEngine.XR.ARSubsystems.XRSessionSubsystem:Update(XRSessionUpdateParams) (at ./Library/PackageCache/com.unity.xr.arfoundation/Runtime/ARSubsystems/SessionSubsystem/XRSessionSubsystem.cs:135)
UnityEngine.XR.ARFoundation.ARSession:Update() (at ./Library/PackageCache/com.unity.xr.arfoundation/Runtime/ARFoundation/ARSession.cs:404)
Failed to start provider for ImageTracking
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
UnityEngine.XR.VisionOS.VisionOSSessionProvider:TryStartProviders(Feature) (at ./Library/PackageCache/com.unity.xr.visionos/Runtime/VisionOSSessionSubsystem.cs:271)
UnityEngine.XR.VisionOS.VisionOSSessionProvider:Update(XRSessionUpdateParams, Configuration) (at ./Library/PackageCache/com.unity.xr.visionos/Runtime/VisionOSSessionSubsystem.cs:151)
UnityEngine.XR.ARSubsystems.XRSessionSubsystem:Update(XRSessionUpdateParams) (at ./Library/PackageCache/com.unity.xr.arfoundation/Runtime/ARSubsystems/SessionSubsystem/XRSessionSubsystem.cs:135)
UnityEngine.XR.ARFoundation.ARSession:Update() (at ./Library/PackageCache/com.unity.xr.arfoundation/Runtime/ARFoundation/ARSession.cs:404)
Someone on the Unity forums had a similar issue with Image Tracking. Their issue was caused by the reference image names being changed during the build to include a GUID, but that doesn't seem to be my problem. I only have one reference image, and my Reference Image Library should be correctly assigned.
Upvotes: 0
Views: 14