Log in or register to post comments

Can't build for hololens with Unity 2020.2.0

December 16, 2020 - 3:21am #1

Building my app fails after updating Unity:

  • Hololens 2
  • Unity 2020.2.0f1
  • Vuforia 9.6.3
  • MRTK 2.5.1
  • Windows XR Plugin 4.2.1
  • XR Interaction Subsystems 1.0.1
  • XR Legacy Input Helpers 2.1.7
  • XR Plugin Management 3.2.17

The build fails with the following messages:

Reference rewriter: Error: type `UnityEngine.XR.WSA.HolographicSettings` doesn't exist in target framework. It is referenced from Vuforia.UnityExtensions.dll at System.Void Vuforia.WSAUnityPlayer/HoloLensApiImplementation::SetFocusPoint(UnityEngine.Vector3,UnityEngine.Vector3). UnityEngine.Debug:LogError (object) PostProcessWinRT:RunReferenceRewriter () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1195) PostProcessWinRT:Process () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:203) UnityEditor.BuildPipeline:BuildPlayer (string[],string,UnityEditor.BuildTarget,UnityEditor.BuildOptions) BimVisualizer.Unity.Editor.BuildHelper:BuildProject (string,UnityEditor.BuildTarget,UnityEditor.BuildTargetGroup,UnityEditor.ScriptingImplementation,BimVisualizer.Unity.Editor.BuildHelper/Architecture,BimVisualizer.Unity.Editor.BuildHelper/BuildPathBuilder,System.Action,string[]) (at Assets/BimVisualizer.Unity.Editor/BuildHelper.cs:78) BimVisualizer.Unity.Editor.BuildHelper:BuildHololens (UnityEditor.Il2CppCompilerConfiguration,BimVisualizer.Unity.Editor.BuildHelper/Architecture) (at Assets/BimVisualizer.Unity.Editor/BuildHelper.cs:35) BimVisualizer.Unity.Editor.BuildToolsUi:BuildHololens2Master () (at Assets/BimVisualizer.Unity.Editor/BuildToolsUi.cs:17)

Reference rewriter: Error: method `System.Void UnityEngine.XR.WSA.HolographicSettings::SetFocusPointForFrame(UnityEngine.Vector3)` doesn't exist in target framework. It is referenced from Vuforia.UnityExtensions.dll at System.Void Vuforia.WSAUnityPlayer/HoloLensApiImplementation::SetFocusPoint(UnityEngine.Vector3,UnityEngine.Vector3).

UnityEngine.Debug:LogError (object)

PostProcessWinRT:RunReferenceRewriter () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:1195)

PostProcessWinRT:Process () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:203)

UnityEditor.BuildPipeline:BuildPlayer (string[],string,UnityEditor.BuildTarget,UnityEditor.BuildOptions)

BimVisualizer.Unity.Editor.BuildHelper:BuildProject (string,UnityEditor.BuildTarget,UnityEditor.BuildTargetGroup,UnityEditor.ScriptingImplementation,BimVisualizer.Unity.Editor.BuildHelper/Architecture,BimVisualizer.Unity.Editor.BuildHelper/BuildPathBuilder,System.Action,string[]) (at Assets/BimVisualizer.Unity.Editor/BuildHelper.cs:78)

BimVisualizer.Unity.Editor.BuildHelper:BuildHololens (UnityEditor.Il2CppCompilerConfiguration,BimVisualizer.Unity.Editor.BuildHelper/Architecture) (at Assets/BimVisualizer.Unity.Editor/BuildHelper.cs:35)

BimVisualizer.Unity.Editor.BuildToolsUi:BuildHololens2Master () (at Assets/BimVisualizer.Unity.Editor/BuildToolsUi.cs:17)

Can't build for hololens with Unity 2020.2.0

January 11, 2021 - 12:54am #4

Do you have any update on 2020.2 support?

Can't build for hololens with Unity 2020.2.0

December 17, 2020 - 11:12am #3

I have been using Vuforia with the hololens 2 and MRTK since the 2020.1.0 release. It is working as expected from versions from 2020.1.0 to 2020.1.17 (I update the project with every new TECH release). The posted errors happened after updating to 2020.2.0

Can't build for hololens with Unity 2020.2.0

December 17, 2020 - 5:48am #2

Hi,

Microsoft recommends 2019 LTS for Hololens Development and we created 2 samples for Hololens2. One for 2019 LTS: https://assetstore.unity.com/packages/templates/packs/vuforia-hololens-1-2-sample-for-unity-2019-4-lts-101553 and a second one for 2020.1: https://assetstore.unity.com/packages/templates/packs/vuforia-hololens-1-2-sample-for-unity-2020-1-and-later-183725

Could you please test the app with 2019.4 LTS or 2020.1?

Thank you.

Vuforia Engine Support

Log in or register to post comments