# DllNotFoundException in Mac Build

**URL:** <https://qa.fmod.com/t/dllnotfoundexception-in-mac-build/16115>\
**Category:** Unity\
**Created:** [August 26, 2020, 2:00am UTC](https://qa.fmod.com/t/dllnotfoundexception-in-mac-build/16115 "2020-08-26T02:00:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunomend](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@brunomend](https://qa.fmod.com/u/brunomend)\
**Post date:** [August 26, 2020, 2:00am UTC](https://qa.fmod.com/t/dllnotfoundexception-in-mac-build/16115/1 "2020-08-26T02:00:36Z")

</div>

Hi. I’m having problems with the Mac build of my game using Unity and FMOD 2.01.03, when I try to start the build it returns the following error:

> DllNotFoundException: fmodstudioL  
> at (wrapper managed-to-native) FMOD.Memory.FMOD5\_Memory\_GetStats(int&,int&,bool)  
> at FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced, System.Boolean blocking) [0x00001] in C:\Users\domde\Documents\Unity\Evertried\Evertried\Assets\Plugins\FMOD\src\Runtime\wrapper\fmod.cs:874  
> at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00001] in C:\Users\domde\Documents\Unity\Evertried\Evertried\Assets\Plugins\FMOD\src\Runtime\RuntimeUtils.cs:225  
> at FMODUnity.RuntimeManager.get\_Instance () [0x00114] in C:\Users\domde\Documents\Unity\Evertried\Evertried\Assets\Plugins\FMOD\src\Runtime\RuntimeManager.cs:108  
> Rethrow as SystemNotInitializedException: [FMOD] Initialization failed  
> at FMODUnity.RuntimeManager.get\_Instance () [0x00153] in C:\Users\domde\Documents\Unity\Evertried\Evertried\Assets\Plugins\FMOD\src\Runtime\RuntimeManager.cs:118  
> at FMODUnity.RuntimeManager.get\_StudioSystem () [0x00001] in C:\Users\domde\Documents\Unity\Evertried\Evertried\Assets\Plugins\FMOD\src\Runtime\RuntimeManager.cs:132  
> at FMODUnity.RuntimeManager.GetVCA (System.String path) [0x00001] in C:\Users\domde\Documents\Unity\Evertried\Evertried\Assets\Plugins\FMOD\src\Runtime\RuntimeManager.cs:1102  
> at FMODHandler.SetVolume (System.String vcaPath, System.Single volume) [0x00001] in C:\Users\domde\Documents\Unity\Evertried\Evertried\Assets\_Evertried\_Scripts\Entities\FMODHandler.cs:240  
> at FMODHandler.set\_SoundtrackVolume (System.Single value) [0x00000] in C:\Users\domde\Documents\Unity\Evertried\Evertried\Assets\_Evertried\_Scripts\Entities\FMODHandler.cs:28  
> at SettingsPanel.Start () [0x0009f] in C:\Users\domde\Documents\Unity\Evertried\Evertried\Assets\_Evertried\_Scripts\UI\Panels\SettingsPanel\SettingsPanel.cs:36  
> Fallback handler could not load library/private/var/folders/fb/mkf66p893lbcfqv0gyzkklv00000gn/T/AppTranslocation/6E1889A7-7F78-4B2C-9CBA-49DF0C4CF88D/d/Evertried v1.2.1c\_Mac.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.dylib  
> Fallback handler could not load library /private/var/folders/fb/mkf66p893lbcfqv0gyzkklv00000gn/T/AppTranslocation/6E1889A7-7F78-4B2C-9CBA-49DF0C4CF88D/d/Evertried v1.2.1c\_Mac.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.so  
> Fallback handler could not load library /private/var/folders/fb/mkf66p893lbcfqv0gyzkklv00000gn/T/AppTranslocation/6E1889A7-7F78-4B2C-9CBA-49DF0C4CF88D/d/Evertried v1.2.1c\_Mac.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.bundle  
> Fallback handler could not load library /private/var/folders/fb/mkf66p893lbcfqv0gyzkklv00000gn/T/AppTranslocation/6E1889A7-7F78-4B2C-9CBA-49DF0C4CF88D/d/Evertried v1.2.1c\_Mac.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudioL  
> Fallback handler could not load library /private/var/folders/fb/mkf66p893lbcfqv0gyzkklv00000gn/T/AppTranslocation/6E1889A7-7F78-4B2C-9CBA-49DF0C4CF88D/d/Evertried v1.2.1c\_Mac.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL  
> Fallback handler could not load library /private/var/folders/fb/mkf66p893lbcfqv0gyzkklv00000gn/T/AppTranslocation/6E1889A7-7F78-4B2C-9CBA-49DF0C4CF88D/d/Evertried v1.2.1c\_Mac.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.dylib  
> Fallback handler could not load library /private/var/folders/fb/mkf66p893lbcfqv0gyzkklv00000gn/T/AppTranslocation/6E1889A7-7F78-4B2C-9CBA-49DF0C4CF88D/d/Evertried v1.2.1c\_Mac.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.so  
> Fallback handler could not load library /private/var/folders/fb/mkf66p893lbcfqv0gyzkklv00000gn/T/AppTranslocation/6E1889A7-7F78-4B2C-9CBA-49DF0C4CF88D/d/Evertried v1.2.1c\_Mac.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.bundle  
> Fallback handler could not load library /private/var/folders/fb/mkf66p893lbcfqv0gyzkklv00000gn/T/AppTranslocation/6E1889A7-7F78-4B2C-9CBA-49DF0C4CF88D/d/Evertried v1.2.1c\_Mac.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL

Does anyone knows how I can fix this?  
PS: I tried searching the build folder for the files “libfmodL.dylib”, “libfmodstudio.dylib”, “libfmodstudioL.dylib” and “libfmod.dylib” but it seems that they’re nowhere to be found.

---

<div class="post-metadata">

**Author:** ![ben\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/ben_fmod/32/1452_2.png) [@ben\_fmod](https://qa.fmod.com/u/ben_fmod)\
**Post date:** [September 1, 2020, 5:00am UTC](https://qa.fmod.com/t/dllnotfoundexception-in-mac-build/16115/2 "2020-09-01T05:00:52Z")

</div>

Hi,  
You should have fmodstudio.bundle and fmodstudioL.bundle in the Assets/Plugins/FMOD/lib/mac folder in your Unity project. If they are not there, you may need to reimport them from the FMOD for Unity package.

If they are there, select fmodstudioL.bundle and check the import settings in the Inspector. They should look like this:

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/0/0d7a53828da554f2ebc2fb0171e841eb2e9e5ce0.png)

If the import settings are correct, fmodstudio.bundle and fmodstudioL.bundle should be copied to (your built app bundle)/Contents/Plugins when you build the game.

If none of this helps, please let us know and we’ll investigate further.
