DllNotFoundException in Mac Build

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.

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

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.

1 Like