# MacOS errors on DLL even with correct line endings

**URL:** https://qa.fmod.com/t/macos-errors-on-dll-even-with-correct-line-endings/22383
**Category:** Unity
**Tags:** unity
**Created:** [December 7, 2024, 11:58am UTC](https://qa.fmod.com/t/macos-errors-on-dll-even-with-correct-line-endings/22383 "2024-12-07T11:58:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![fendercodes](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fendercodes/32/2971_2.png) [@fendercodes](https://qa.fmod.com/u/fendercodes)
#### Post date: [December 7, 2024, 11:58am UTC](https://qa.fmod.com/t/macos-errors-on-dll-even-with-correct-line-endings/22383/1 "2024-12-07T11:58:12Z")

</div>

When I run a development standalone build on MacOS, I get the following error:

```auto
DllNotFoundException: fmodstudioL assembly:<unknown assembly> type:<unknown type> member:(null)
  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 /Users/joefender/Documents/Workspace/Daybreak/Assets/Plugins/FMOD/src/fmod.cs:993 
  at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00001] in /Users/joefender/Documents/Workspace/Daybreak/Assets/Plugins/FMOD/src/RuntimeUtils.cs:552 
  at FMODUnity.RuntimeManager.get_Instance () [0x000b0] in /Users/joefender/Documents/Workspace/Daybreak/Assets/Plugins/FMOD/src/RuntimeManager.cs:184 

```

I’ve seen it mentioned a few times in posts here but it seems to be because of line endings?

I’ve got these 2 lines in my `.gitattributes` but it hasn’t fixed the issue:

```auto
/Assets/Plugins/FMOD/**/*.bundle text eol=lf
/Assets/Plugins/FMOD/**/Info.plist text eol=lf

```

VSCode tells me the file uses LF line endings for the Info.plist file, so I think those commands are working…

Note that I specify the FMOD path because your recommendation in the [docs](https://fmod.com/docs/2.03/unity/user-guide.html#line-endings) actually broke a bundle file in a separate packaage and prevented builds from working (see error below for what happened to it). I had to re-import their package for it to be fixed.

```auto
Building /Users/joefender/Documents/Workspace/Builds/Daybreak/Daybreak.app/Contents/PlugIns/AudioPluginDissonance.bundle failed with output:
System.Exception: Cannot sign '/Users/joefender/Documents/Workspace/Builds/Daybreak/Daybreak.app/Contents/PlugIns/AudioPluginDissonance.bundle' because it is not a valid Mach-O binary.
   at UnityEditor.OSXStandalone.CodeSigning.BundleSigner.LogSignErrorIfNeeded(SigningError signResult) in /Users/bokken/build/output/unity/unity/Platforms/OSX/CodeSigning/BundleSigner.cs:line 316
   at UnityEditor.OSXStandalone.CodeSigning.BundleSigner.SignMachOFile(FileToSign file, SignFlags flags) in /Users/bokken/build/output/unity/unity/Platforms/OSX/CodeSigning/BundleSigner.cs:line 259
   at UnityEditor.OSXStandalone.CodeSigning.BundleSigner.SignDylib(String dylibPath, SignFlags signFlags) in /Users/bokken/build/output/unity/unity/Platforms/OSX/CodeSigning/BundleSigner.cs:line 30
   at MacOSCodeSignDylibCopy.Run(CSharpActionContext ctx, SignFlags signFlags) in /Users/bokken/build/output/unity/unity/Platforms/OSX/MacStandalonePlayerBuildProgram/MacOSCodeSigning.cs:line 67

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)

```

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [December 12, 2024, 4:49am UTC](https://qa.fmod.com/t/macos-errors-on-dll-even-with-correct-line-endings/22383/2 "2024-12-12T04:49:37Z")

</div>

What versions of FMOD and Unity are you using?  
Is there anything else related in the logs?

---

<div class="post-metadata">

### Author: ![fendercodes](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fendercodes/32/2971_2.png) [@fendercodes](https://qa.fmod.com/u/fendercodes)
#### Post date: [December 14, 2024, 12:55am UTC](https://qa.fmod.com/t/macos-errors-on-dll-even-with-correct-line-endings/22383/3 "2024-12-14T00:55:00Z")

</div>

We’re on Unity 6000.0.23f1 and the latest FMOD on the asset store (listed as 2.02.24). Here is the (short) log file from when opening the build.

[Player.log](https://qa.fmod.com/uploads/short-url/ileRlK7TPlO7DtF86nawaDooHgr.log) (27.8 KB)

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [December 16, 2024, 5:17am UTC](https://qa.fmod.com/t/macos-errors-on-dll-even-with-correct-line-endings/22383/4 "2024-12-16T05:17:37Z")

</div>

Would you be able to try using the integration from our [website](https://www.fmod.com/download) and see if that makes a difference?

---

<div class="post-metadata">

### Author: ![fendercodes](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fendercodes/32/2971_2.png) [@fendercodes](https://qa.fmod.com/u/fendercodes)
#### Post date: [January 3, 2025, 5:38am UTC](https://qa.fmod.com/t/macos-errors-on-dll-even-with-correct-line-endings/22383/5 "2025-01-03T05:38:09Z")

</div>

Apologies for the slow response. I’ve just installed the latest from the UAS which is **2.0.26** (I think that’s the same as the one on your site too?).

However, I am still getting the same errors.

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [January 15, 2025, 2:38am UTC](https://qa.fmod.com/t/macos-errors-on-dll-even-with-correct-line-endings/22383/6 "2025-01-15T02:38:56Z")

</div>

Can you confirm that the .bundle is present:  
`Assets/Plugins/FMOD/platforms/mac/lib/fmodstudioL.bundle`  
And that it does contain the lib:  
`Contents/MacOS/fmodstudioL`

---

<div class="post-metadata">

### Author: ![fendercodes](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fendercodes/32/2971_2.png) [@fendercodes](https://qa.fmod.com/u/fendercodes)
#### Post date: [January 15, 2025, 3:44am UTC](https://qa.fmod.com/t/macos-errors-on-dll-even-with-correct-line-endings/22383/7 "2025-01-15T03:44:59Z")

</div>

@cameron-fmod Yeah, it’s in there.

 ![{C780D01C-C0BF-4685-BE85-9CABE60DEE64}](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/3/3c43b0a0fe5d3cbbbc16c40a3e0fb923dfc62d88.png)
