[Mac OS X] libsteam_api.dylib runtime linking error

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.

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

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,

.

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,

.

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.

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