# ZI Discovery Issue SimApp

**URL:** <https://forum.magicleap.cloud/t/zi-discovery-issue-simapp/1401>\
**Category:** App Simulator\
**Tags:** unity\
**Created:** [January 20, 2023, 2:30pm UTC](https://forum.magicleap.cloud/t/zi-discovery-issue-simapp/1401 "2023-01-20T14:30:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris.bltsmrt](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/chris.bltsmrt/32/559_2.png) [@chris.bltsmrt](https://forum.magicleap.cloud/u/chris.bltsmrt)\
**Post date:** [January 20, 2023, 2:30pm UTC](https://forum.magicleap.cloud/t/zi-discovery-issue-simapp/1401/1 "2023-01-20T14:30:13Z")

</div>

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](https://forum.magicleap.cloud/uploads/short-url/dGA8yk8jcWcF5cfNnlKP6aD4I0e.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.

---

<div class="post-metadata">

**Author:** ![chris.bltsmrt](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/chris.bltsmrt/32/559_2.png) [@chris.bltsmrt](https://forum.magicleap.cloud/u/chris.bltsmrt)\
**Post date:** [January 20, 2023, 6:24pm UTC](https://forum.magicleap.cloud/t/zi-discovery-issue-simapp/1401/2 "2023-01-20T18:24:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [January 20, 2023, 6:26pm UTC](https://forum.magicleap.cloud/t/zi-discovery-issue-simapp/1401/3 "2023-01-20T18:26:16Z")

</div>

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