ZI Discovery Issue SimApp

Give us as much detail as possible regarding the issue you're experiencing.

Unity Editor version (if applicable): 2022.2.2f1
ML2 OS version:N/A
MLSDK version:1.1.0
ML Hub version: 2.0.7
ML Hub Version 2.0.7.202212161929
Magic Leap Application Simulator Module Version 3.4.0.202212161540
Magic Leap Application Simulator Runtime Version 3.4.0.20221216
Server: 3.4 (built Dec 16 2022), Protocol: 15
ZIF (bundled): Version 0.0.30.20221215
ZIF (runtime): Version 0.0.30.20221215
Host OS: Windows

Don't forget to attach the logs!

logfile.txt (242.1 KB)

I am having and issue where when I go to run my project in Unity I keep getting this error:
"ZIDiscovery returned with code 1: ZIF E [zi_environment_impl.cpp:333] ML_ZI_ROOT directory does not have 'bin' folder (C:\Users\Chris\MagicLeap\tools\zi\v3.4.0.20221216\lib)
error: Error running ZIEnvironmentGetLibrarySearchPaths(paths): the requested object does not exist

UnityEditor.XR.MagicLeap.AppSimShimLibSupport:CheckForLibrarySearchPaths () (at C:/Users/Chris/MagicLeap/tools/unity/v1.3.0/com.magicleap.unitysdk/package/Editor/MLAppSim/AppSimShimLibSupport.cs:81)"

I have created an Environment Variable "ML_ZI_ROOT" that points to "C:\Users\Chris\MagicLeap\tools\zi\v3.4.0.20221216" and I have made sure that the Unity > Preferences > Eternal Tools > Magic Leap shows "App Sim Runtime detected". I don't think I am missing anywhere else where that variable would be adjusted.

I had the SimApp and Unity working with each other the other day but now it seems the path is going one level too deep since it is looking for 'bin' inside of the 'lib' folder rather than the zi folder.

2 Likes

Well I turned on my computer this morning and launched everything and now the ZILauncher isn't throwing that error. Hopefully this is the end of the journey.

1 Like

Thank you for the update @chris.bltsmrt. Best of luck and let us know if you run into any issues.

1 Like