Error builing x64 with Lumin dlls present

I’m getting this error when trying to build a standalone Windows x64 executable when the Lumin plugins are present in the project:

ArgumentException: The Assembly UnityEngine.XR.MagicLeap is referenced by LuminUnity (‘Assets/MagicLeap/Libs/LuminUnity.dll’). But the dll is not allowed to be included or could not be found.

UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:154)

UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1[T] alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:160)

UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[ ] paths, System.String[ ] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:194)

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I’m running Unity 2019.2.0f1

If I exclude the plugin from the Standalone build in the dll settings, I get errors in all the magic leap scripts that I have in my project.

Any ideas on how I can solve this?

1 Like

Hey, I’m following up with Lumin folks about it internally.

For now, could you wrap those scripts under #if PLATFORM_LUMIN/#endif define?

Yeah. That’s what I ended up doing to be able to keep working. Thanks for checking!

Hey @Tautvydas-Zilys

Any progress on this issue or is there anywhere we can track the status?

Thanks

Unfortunately I don’t have any progress to report. We’re still waiting on response from Magic Leap, as the issue exists in their code (rather than within Unity).

1 Like

Thanks for the update

Hello! Just to update this thread, the 0.24.0 MagicLeap Unity SDK should resolve this issue. You can download it from MagicLeap via their “Creator’s Lab” app.