# \[Mac OS X\] libsteam\_api.dylib runtime linking error

**URL:** <https://forums.unrealengine.com/t/mac-os-x-libsteam_api-dylib-runtime-linking-error/347423>\
**Category:** Platform & Builds\
**Tags:** os-x, error, Steam, MAC, unreal-engine, linking, question\
**Created:** [February 14, 2016, 8:43am UTC](https://forums.unrealengine.com/t/mac-os-x-libsteam_api-dylib-runtime-linking-error/347423 "2016-02-14T08:43:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![smaddock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@smaddock](https://forums.unrealengine.com/u/smaddock)\
**Post date:** [February 14, 2016, 8:43am UTC](https://forums.unrealengine.com/t/mac-os-x-libsteam_api-dylib-runtime-linking-error/347423/1 "2016-02-14T08:43:47Z")

</div>

I’ve recently started working on compiling my project for Mac OS X and I’m having trouble getting Steam to work when launching the game.

My code attempts to call `SteamApps()` which gives the following error:

> dyld: lazy symbol binding failed: can’t resolve symbol \_SteamApps in /Unreal Projects/My Game/Binaries/Mac//UE4Editor-MyGameModule.dylib because dependent dylib #3 could not be loaded

`MyGameModule` has “Steamworks” as a third-party private static dependency and “OnlineSubsystemSteam” as a private module dependency. It also includes the necessary Steam headers in `MyGameModulePrivatePCH.h`.

I’m unaware of any requirements besides copying `libsteam_api.dylib` into `UnrealEngine/Binaries/Mac/UE4Editor.app/Contents/MacOS`.

**Edit:**  
It seems that the game module is trying to load `libsteam_api.dylib` from `/Unreal Projects/My Game/Binaries/Mac/` instead of `UnrealEngine/Binaries/Mac/UE4Editor.app/Contents/MacOS`. After placing the library into the game binaries directory, it loads the library fine, but calls to the Steam API fail since it hasn’t been initialized. Ideally, I’d like to only use one binary.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [February 26, 2016, 6:55pm UTC](https://forums.unrealengine.com/t/mac-os-x-libsteam_api-dylib-runtime-linking-error/347423/2 "2016-02-26T18:55:43Z")

</div>

Hi smaddock,

It’s difficult to say what is going on with your specific project but the following link may shed some light on the issue:

[Dynamic Library Usage Guidelines](https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryUsageGuidelines.html)

Please review this doc as it specifically speaks to “lazy binding.” If this does not help you resolve the issue, please respond and include information about your Mac’s hardware and OS.

Thanks,

.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [March 4, 2016, 4:26pm UTC](https://forums.unrealengine.com/t/mac-os-x-libsteam_api-dylib-runtime-linking-error/347423/3 "2016-03-04T16:26:01Z")

</div>

Hi smaddock,

It’s been a few days since we’ve heard back from you so we are marking this post “resolved” for tracking purposes. However, if you are continuing to get this error when trying to package, please respond with the requested information and we will continue to investigate.

Thanks,

.

---

<div class="post-metadata">

**Author:** ![smaddock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@smaddock](https://forums.unrealengine.com/u/smaddock)\
**Post date:** [March 6, 2016, 9:51pm UTC](https://forums.unrealengine.com/t/mac-os-x-libsteam_api-dylib-runtime-linking-error/347423/4 "2016-03-06T21:51:15Z")

</div>

Hi , this issue is still ongoing. However, I haven’t had enough time to look into it. I’ll update this post in the future when I get around to fixing it.

---

<div class="post-metadata">

**Author:** ![nah19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nah19](https://forums.unrealengine.com/u/nah19)\
**Post date:** [March 7, 2017, 3:17pm UTC](https://forums.unrealengine.com/t/mac-os-x-libsteam_api-dylib-runtime-linking-error/347423/5 "2017-03-07T15:17:20Z")

</div>

Hi Smaddock, did you solved??? I have the same issue in Mac version of my project…
