# 4.22 MacOS Packaged Build crashes, cannot find libfmodL.dylib

**URL:** https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603
**Category:** Unreal Engine
**Created:** [April 23, 2019, 1:40am UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603 "2019-04-23T01:40:21Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jeremyabel](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jeremyabel](https://qa.fmod.com/u/jeremyabel)
#### Post date: [April 23, 2019, 1:40am UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/1 "2019-04-23T01:40:21Z")

</div>

FMOD works great in the editor, but packaged builds crash immediately, unable to find the libfmodL.dylib file. The file definitely exists, and it seems to have the correct paths set up, using @rpath. Not sure what to do here exactly, any tips?

I’m on MacOS 10.14, XCode 9.4.1, FMOD 1.10.12.

---

<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: [April 30, 2019, 1:15am UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/2 "2019-04-30T01:15:45Z")

</div>

Are you able to share the logs from the game?  
You can send them to [support@fmod.com](mailto:support@fmod.com).

---

<div class="post-metadata">

### Author: ![jeremyabel](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jeremyabel](https://qa.fmod.com/u/jeremyabel)
#### Post date: [April 30, 2019, 10:15pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/3 "2019-04-30T22:15:42Z")

</div>

Ok, just sent one over

---

<div class="post-metadata">

### Author: ![jeremyabel](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jeremyabel](https://qa.fmod.com/u/jeremyabel)
#### Post date: [May 1, 2019, 6:57pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/4 "2019-05-01T18:57:23Z")

</div>

This issue can be solved by running install\_name\_tool in the terminal to add the path “@executable\_path/…/UE4/GameName/Plugins/FMODStudio/Binaries/Mac”

---

<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: [May 2, 2019, 4:40am UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/5 "2019-05-02T04:40:35Z")

</div>

Thanks for the info, I am still looking into this issue.

It appears that in previous engine versions, our libs would get copied to the same folder as the executable but in UE4.22 they do not.

---

<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: [May 16, 2019, 11:33pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/6 "2019-05-16T23:33:07Z")

</div>

Sorry for the delay, it appears that this is an unwanted and unexpected side effect of some changes made to the Unreal Engine. They are looking for a fix for this but in the meantime modifications will need to be done in the engine:

[https://udn.unrealengine.com/questions/500361/built-mac-game-unable-to-find-plugin-libs.html](https://udn.unrealengine.com/questions/500361/built-mac-game-unable-to-find-plugin-libs.html)

---

<div class="post-metadata">

### Author: ![Tomavatars](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tomavatars/32/49_2.png) [@Tomavatars](https://qa.fmod.com/u/Tomavatars)
#### Post date: [May 24, 2019, 9:33am UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/7 "2019-05-24T09:33:40Z")

</div>

Hi there @cameron-fmod , I can’t access the link :

 ![](https://cl.ly/2f6c03b32648/Image%202019-05-24%20at%2011.32.41%20AM.png)

In the meantime, can you add the solution here?  
Thanks!

---

<div class="post-metadata">

### Author: ![Tomavatars](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tomavatars/32/49_2.png) [@Tomavatars](https://qa.fmod.com/u/Tomavatars)
#### Post date: [June 3, 2019, 12:58pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/8 "2019-06-03T12:58:34Z")

</div>

Hello @cameron-fmod  
Could you give me a solution in order to be able to play to a package project please?

---

<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: [June 3, 2019, 10:41pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/9 "2019-06-03T22:41:10Z")

</div>

The solution requires access to the UE4 Source Engine, as you need to modify some engine code and then also recompile it (the Unreal Build Tool at least).

---

<div class="post-metadata">

### Author: ![Tomavatars](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tomavatars/32/49_2.png) [@Tomavatars](https://qa.fmod.com/u/Tomavatars)
#### Post date: [June 4, 2019, 8:18am UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/10 "2019-06-04T08:18:15Z")

</div>

Thanks Cameron. Do you have an ETA for the fix on the side of Unreal?

---

<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: [June 5, 2019, 12:57am UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/11 "2019-06-05T00:57:53Z")

</div>

Not at this point, they said they would let us know as soon as they figure out a proper fix.

---

<div class="post-metadata">

### Author: ![Tomavatars](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tomavatars/32/49_2.png) [@Tomavatars](https://qa.fmod.com/u/Tomavatars)
#### Post date: [June 5, 2019, 10:00am UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/12 "2019-06-05T10:00:25Z")

</div>

Okay, so I made a big mistake as I worked on the 4.22 version before knowing there was a packaging bug with Fmod. I have to ship my project on the 5th of July and I can’t downgrade on UE 4.21 as the maps I worked on wont be able to work.  
Would you mind to give me a few tips in order to build the engine from source? I already done this a few years ago for an android project so I’m not completely noobish, but actually I don’t understand the steps for @jeremyabel solution : “This issue can be solved by running install\_name\_tool in the terminal to add the path “@executable\_path/…/UE4/GameName/Plugins/FMODStudio/Binaries/Mac””

Sorry 😓

---

<div class="post-metadata">

### Author: ![jeremyabel](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jeremyabel](https://qa.fmod.com/u/jeremyabel)
#### Post date: [June 5, 2019, 5:12pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/13 "2019-06-05T17:12:34Z")

</div>

Hey Tom! I’d be happy to help. Once the FMOD issue is sorted out, you’ll also encounter a great number of other issues packaging for mac desktop. I’ve created a script that fixes all the issues with a packaged build, and I’ll put that up on github later tonight. In the meantime, the exact command for fixing up the FMODStudio binaries is:

```
install_name_tool -add_rpath @executable_path/../UE4/YourGame/Plugins/FMODStudio/Binaries/Mac /Path/To/YourGame.app/Contents/MacOS/YourGame

```

You’ll need to fiddle with these paths in order to match them to your game. The first path (the one that starts with @executable\_path), you just need to replace “YourGame” with whatever the name of your game project folder is. The second one is an absolute path to the packaged executable inside the app bundle. You can get this by right-clicking the app, and picking “Show Package Contents”. Then navigate to Contents/MacOS, and you’ll see an executable file with the name of your game. That’s the path you want to pass as the second argument to install\_name\_tool.

Running the install\_name\_tool command will only ensure the game runs correctly on _your_ system. There’s about 10 other steps you’ll need to take in order for it to run correctly on _other_ systems. I’ll reply to this thread with the script I wrote to automate all this.

I’m happy to help further, since packaging on desktop mac is currently undocumented. Shoot me an email at [jeremyabel@gmail.com](mailto:jeremyabel@gmail.com) and I’d be happy to walk you through all of it.

---

<div class="post-metadata">

### Author: ![Tomavatars](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tomavatars/32/49_2.png) [@Tomavatars](https://qa.fmod.com/u/Tomavatars)
#### Post date: [June 6, 2019, 8:39am UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/14 "2019-06-06T08:39:16Z")

</div>

Thank you so much @jeremyabel this is very kind from you!  
I’ll wait for the script as I need to send a test version to my team mate.  
Do I need to use/run the UE4 source Engine or does your solution work with the binaries?

---

<div class="post-metadata">

### Author: ![jeremyabel](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jeremyabel](https://qa.fmod.com/u/jeremyabel)
#### Post date: [June 6, 2019, 6:07pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/15 "2019-06-06T18:07:57Z")

</div>

It just works with the packaged game binaries. Here’s the script and all other required files, as well as some info in a README: [https://github.com/jeremyabel/UnrealBuildMac](https://github.com/jeremyabel/UnrealBuildMac)

---

<div class="post-metadata">

### Author: ![Alanzote](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@Alanzote](https://qa.fmod.com/u/Alanzote)
#### Post date: [January 14, 2020, 8:02pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/16 "2020-01-14T20:02:23Z")

</div>

Any words on an official fix? I have just tried making a MacOS build on 4.24 and I encontered this issue immediatly.

---

<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 17, 2020, 1:02am UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/17 "2020-01-17T01:02:14Z")

</div>

I have updated the question and currently awaiting a reply from Epic.

---

<div class="post-metadata">

### Author: ![Tomavatars](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tomavatars/32/49_2.png) [@Tomavatars](https://qa.fmod.com/u/Tomavatars)
#### Post date: [February 4, 2020, 2:37pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/18 "2020-02-04T14:37:03Z")

</div>

> [@jeremyabel](#):
>
> [GitHub - jeremyabel/UnrealBuildMac: Script for fixing up broken packaged games from Unreal Engine 4.22.1 on Desktop Mac](https://github.com/jeremyabel/UnrealBuildMac)

Don’t hesitate to give us some news, thanks!

---

<div class="post-metadata">

### Author: ![Tomavatars](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tomavatars/32/49_2.png) [@Tomavatars](https://qa.fmod.com/u/Tomavatars)
#### Post date: [March 29, 2020, 4:20pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/19 "2020-03-29T16:20:36Z")

</div>

Hi Cameron, any news?

---

<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: [March 31, 2020, 8:59pm UTC](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603/20 "2020-03-31T20:59:31Z")

</div>

Still no reply from Epic unfortunately.

[Next page](https://qa.fmod.com/t/4-22-macos-packaged-build-crashes-cannot-find-libfmodl-dylib/14603.md?page=2)
