# How to include 3rd party .dylib in plugin?

**URL:** <https://forums.unrealengine.com/t/how-to-include-3rd-party-dylib-in-plugin/370429>\
**Category:** Plugins\
**Tags:** MAC, unreal-engine, ubt, packaging-projects, Plugins, question\
**Created:** [September 14, 2016, 3:25pm UTC](https://forums.unrealengine.com/t/how-to-include-3rd-party-dylib-in-plugin/370429 "2016-09-14T15:25:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamrann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kamrann](https://forums.unrealengine.com/u/kamrann)\
**Post date:** [September 14, 2016, 3:25pm UTC](https://forums.unrealengine.com/t/how-to-include-3rd-party-dylib-in-plugin/370429/1 "2016-09-14T15:25:06Z")

</div>

We have a plugin for which we are currently trying to add Mac support. The plugin contains a ThirdParty directory holding third party dynamic libraries for all platforms. As of 4.12, it is no longer possible to specify a path for a runtime dependency (see [this post](https://answers.unrealengine.com/questions/421425/packaging-fails-when-trying-to-create-stagedbuilds.html)).

For Windows this is circumvented using PublicDelayLoadDLLs, but as far as I’m aware this does not exist on Mac.  
On Mac, a project using our plugin fails to start the editor, due to not being able to find the third party dylib referenced by the plugin module. If we use the install\_name\_tool to specify a relative path to our ThirdParty folder, it works but then fails to work in a packaged build due to the different folder structure.

What is the process for distributing a plugin for Mac with third party library dependencies, without requiring users of the plugin to manually copy files around?

---

<div class="post-metadata">

**Author:** ![kamrann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kamrann](https://forums.unrealengine.com/u/kamrann)\
**Post date:** [June 6, 2017, 10:18am UTC](https://forums.unrealengine.com/t/how-to-include-3rd-party-dylib-in-plugin/370429/2 "2017-06-06T10:18:23Z")

</div>

Bump. We have worked around this by using two copies of the dylib and running the install\_name tool differently on each; we then select which to use in the build.cs file based on build configuration.

I would really like an official response on the right way of doing this though.

---

<div class="post-metadata">

**Author:** ![Nonlin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nonlin](https://forums.unrealengine.com/u/Nonlin)\
**Post date:** [July 1, 2024, 6:10pm UTC](https://forums.unrealengine.com/t/how-to-include-3rd-party-dylib-in-plugin/370429/3 "2024-07-01T18:10:43Z")

</div>

Bump, is there an official way?

---

<div class="post-metadata">

**Author:** ![f3441801f0434a3eb9d085fe06d30774](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@f3441801f0434a3eb9d085fe06d30774](https://forums.unrealengine.com/u/f3441801f0434a3eb9d085fe06d30774)\
**Post date:** [September 26, 2025, 4:43am UTC](https://forums.unrealengine.com/t/how-to-include-3rd-party-dylib-in-plugin/370429/4 "2025-09-26T04:43:18Z")

</div>

Same issue still happening in 2025.  
0\>clang++: Error : no such file or directory: ‘/Users/Shared/Epic Games/UE\_5.5/Engine/Plugins/Marketplace/EasyMultf12382081786V15/Binaries/Mac/UnrealEditor-EasyMultiSave.dylib’
