visionOS template 3.0.2 doesn't build in 6000.3.0b10


/Applications/Unity/Hub/Editor/6000.3.0b10/Unity.app/Contents/Resources/Scripting/il2cpp/build/deploy/il2cpp --convert-to-cpp --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Assembly-CSharp.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/FlatSharp.Runtime.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/FlatSharp.Runtime.Extensions.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Mono.Security.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/mscorlib.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Newtonsoft.Json.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/System.Core.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/System.Data.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/System.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/System.Drawing.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/System.Numerics.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/System.Runtime.CompilerServices.Unsafe.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/System.Runtime.Serialization.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/System.Xml.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/System.Xml.Linq.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Burst.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Burst.Unsafe.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Collections.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Collections.LowLevel.ILSupport.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Deformations.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Entities.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Entities.Graphics.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Entities.Hybrid.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Entities.Hybrid.HybridComponents.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.InputSystem.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.InputSystem.ForUI.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.InternalAPIEngineBridge.004.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.InternalAPIEngineBridge.021.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Mathematics.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Mathematics.Extensions.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.PolySpatial.Core.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.PolySpatial.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Polyspatial.Entities.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.PolySpatial.RealityKit.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.PolySpatial.XR.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.RenderPipeline.Universal.ShaderLibrary.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.RenderPipelines.Core.Runtime.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.RenderPipelines.Core.Runtime.Shared.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.RenderPipelines.GPUDriven.Runtime.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.RenderPipelines.Universal.2D.Runtime.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.RenderPipelines.Universal.Runtime.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Scenes.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Serialization.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.TextMeshPro.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Transforms.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.Transforms.Hybrid.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.UnifiedRayTracing.Runtime.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.VisionOS.Sample.URP.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.XR.ARFoundation.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.XR.ARFoundation.InternalUtils.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.XR.ARSubsystems.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.XR.CoreUtils.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.XR.Hands.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.XR.Interaction.Toolkit.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.XR.Management.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/Unity.XR.VisionOS.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.AccessibilityModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.AdaptivePerformanceModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.AIModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.AndroidJNIModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.AnimationModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.AssetBundleModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.AudioModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.ContentLoadModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.CoreModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.DirectorModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.GameCenterModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.GridModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.HierarchyCoreModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.ImageConversionModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.IMGUIModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.InputForUIModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.InputLegacyModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.InputModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.JSONSerializeModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.MultiplayerModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.ParticleSystemModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.Physics2DModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.PhysicsModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.PropertiesModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.RenderAs2DModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.SharedInternalsModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.SpatialTracking.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.SpriteMaskModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.SpriteShapeModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.SubsystemsModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.TerrainModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.TextCoreFontEngineModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.TextCoreTextEngineModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.TextRenderingModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.TilemapModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.UI.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.UIElementsModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.UIModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.UnityAnalyticsCommonModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.UnityAnalyticsModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.UnityConsentModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.UnityWebRequestModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.VFXModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.VideoModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.VRModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.WindModule.dll --assembly=Library/Bee/artifacts/VisionOS/ManagedStripped/UnityEngine.XRModule.dll --extra-types-file=Temp/extra-types.txt --generatedcppdir=/Users/mbp16_2022_m1max/MyTests/visionOSTemplate-3.0.2/Library/Bee/artifacts/VisionOS/il2cppOutput/cpp --symbols-folder=/Users/mbp16_2022_m1max/MyTests/visionOSTemplate-3.0.2/Library/Bee/artifacts/VisionOS/il2cppOutput/cpp/Symbols --enable-analytics --emit-null-checks --enable-array-bounds-check --dotnetprofile=unityaot-macos --usymtool-path=/Applications/Unity/Hub/Editor/6000.3.0b10/Unity.app/Contents/Helpers/usymtool --profiler-report --profiler-output-file=/Users/mbp16_2022_m1max/MyTests/visionOSTemplate-3.0.2/Library/Bee/artifacts/il2cpp_conv_fuc7.traceevents --print-command-line --static-lib-il2-cpp --data-folder=/Users/mbp16_2022_m1max/MyTests/visionOSTemplate-3.0.2/Library/Bee/artifacts/VisionOS/il2cppOutput/data
Error: IL2CPP error (no further information about what managed code was being converted is available)
System.AggregateException: One or more errors occurred. (Found a method reference we cannot resolve to a method definition: UnityEngine.Vector3 UnityEngine.Vector3::op_Subtraction(UnityEngine.Vector3&,UnityEngine.Vector3&))
 ---> System.InvalidOperationException: Found a method reference we cannot resolve to a method definition: UnityEngine.Vector3 UnityEngine.Vector3::op_Subtraction(UnityEngine.Vector3&,UnityEngine.Vector3&)
   at Unity.IL2CPP.DataModel.BuildLogic.MethodReferenceResolver.ResolveMethodReference(TypeContext, UnderConstructionMethodReferenceRepository, CecilSourcedAssemblyData, MethodReference, Dictionary`2) + 0x280
   at Unity.IL2CPP.DataModel.BuildLogic.MethodReferenceResolver.ResolveAssemblyMethodReferences(TypeContext, UnderConstructionMethodReferenceRepository, CecilSourcedAssemblyData, ReadOnlyHashSet`1) + 0xa4
   at Unity.IL2CPP.DataModel.BuildLogic.DataModelBuilder.<>c__DisplayClass16_0.<ResolveReferences>b__0(CecilSourcedAssemblyData data) + 0x68
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) + 0x240
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x24
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception) + 0x14
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) + 0x3e8
   at System.Threading.Tasks.TaskReplicator.Replica.Execute() + 0x50
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.TaskReplicator.Run[TState](TaskReplicator.ReplicatableUserAction`1, ParallelOptions, Boolean) + 0x170
   at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt, TInt, ParallelOptions, Action`1, Action`2, Func`4, Func`1, Action`1) + 0x25c
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x24
   at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection, CancellationToken, Exception) + 0x30
   at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt, TInt, ParallelOptions, Action`1, Action`2, Func`4, Func`1, Action`1) + 0x3d8
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1, ParallelOptions, Action`1, Action`2, Action`3, Func`4, Func`5, Func`1, Action`1) + 0x114
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1, Action`1) + 0x80
   at Unity.IL2CPP.DataModel.BuildLogic.Utils.ParallelHelpers.ForEach[TSource](IEnumerable`1, Action`1, Boolean) + 0xac
   at Unity.IL2CPP.DataModel.BuildLogic.DataModelBuilder.Build() + 0x204
   at Unity.IL2CPP.Contexts.Components.DataModelComponent.Load(TinyProfiler2, LoadSettings, Boolean, Boolean, DataModelBuilder&) + 0x88
   at Unity.IL2CPP.AssemblyConversion.Phases.InitializePhase.Run(AssemblyConversionContext) + 0x1ec
   at Unity.IL2CPP.AssemblyConversion.Classic.ClassicConverter.Run(AssemblyConversionContext) + 0x18
   at Unity.IL2CPP.AssemblyConversion.AssemblyConverter.ConvertAssemblies(AssemblyConversionContext, ConversionMode) + 0x34
   at Unity.IL2CPP.AssemblyConversion.AssemblyConverter.ConvertAssemblies(TinyProfiler2, AssemblyConversionInputData, AssemblyConversionParameters, AssemblyConversionInputDataForTopLevelAccess) + 0xa0

UnityEditor.EditorApplication:Internal_CallDelayFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:407)

Thank you for reporting this. We are aware of the issue and are working to get a release out to fix it. This is only an issue in 6000.3 after the 0b3 patch version. This issue showed up somewhere between 0b3 and 0b10.

do you know if this works in 6.4?

Or patched versions of 6.2

the current template is in the non-patched exploit 6.3 beta

You should use our PolySpatial 2.x packages if your using Unity 6.0 through 6.2.
You should use our PolySpatial 3.x packages if your using Unity 6.3. There was a binary breaking internal change in 6.3 which caused us to recompile a .NET DLL. There was another similar issue that came up in 6.3 somewhere between 0b3 and 0b10 which is causing the issue you reported in this thread.
We are working on getting a release out to fix this, ball park guess it should be out in a couple of days.

Do you know if polyspatial 3 works in unity 6.4?

Also naive question is what happened to all the samples from polyspatial 2 in polyspatial 3

Hi. I just published version 3.0.3 of the com.unity.polyspatial package which should resolve the UnityEngine.Vector3::op_Subtraction error you reported above.
In the past we have published all of our PolySpatial packages in lock step together, this is I believe the first time where we have published just com.unity.polyspatial on its own. You should be able to use to 3.0.3 of com.unity.polyspatial, with the 3.0.2 version of all of the other PolySpatial related packages (com.unity.polyspatial.visionos, com.unity.xr.visionos, and com.unity.polyspatial.xr for example)

Our QA identified a few issues in his testing with Image tracking, and Object tracking with this release. We will attempt to resolve those in a follow up release as soon as we can.

hi, are the issues resolved yet

also i still only see 3.0.2 in the google drive? where is 3.0.3 published?

Thank you @ina for starting this thread — I ran into the same issue and tried many solutions without success.
And thanks to Peter @peter_williams_unity for the update announcement.

Good news: I just successfully built my project using PolySpatial 3.0.3 with Unity 6000.3.1f1.

To answer @ina’s question, I think Unity probably won’t publish a new template until the next major release. For now, you can open Package Manager and manually update com.unity.polyspatial to 3.0.3. Hopefully this solves the problem for you as well.

BTW, one interesting thing I noticed: before switching to the LTS version, I was using 6000.3.0b9. That was the only Unity version where I could successfully build with PolySpatial 3.0.2. Both earlier and later versions failed for me with 3.0.2.

We have identified that the Image Tracking and Object Tracking issues are a bug with ArFoundations, which were introduced between versions 6.3.0-pre.1 and v6.3.0-pre.2. We are working with them to resolve the issue.

The issue is the GUID passed in for when trackables are reported in the “added” list is an empty GUID, so if your using that to key off which element in your library was identified that wont work. I believe it is reported currently in the updated list, so you might be able to work around the issue in the mean time.

Just confirming what Billiton reported, you can use the 3.0.2 google drive links for 3.0.3.