uspgamedev / luasteam

Bindings to connect lua with Steam API
https://luasteam.readthedocs.io/en/stable/
MIT License
129 stars 23 forks source link

Issue on Mac OS... #40

Closed Saturn91 closed 3 months ago

Saturn91 commented 3 months ago

When I try the bellow listed versions in the bellow listed setup, I get a direct crash as soon as I import luasteam.

More precisely it seems to crash as soon as lausteam.os tries to import the .dylib file...

I know this because if I leave the file away, I get a clear error for both files e.g. error loading module 'luasteam' from file './luasteam.so' dlopen(./luasteam.so 0x0006): Library not loaded: @loader_path/libsteam_api.dylib when the .dylib is missing.

I included a test project at the end which also silently crashes on my machine. I would be really happy if someone could look into this... I am a little frustrated especially as I got it to work flawlessly on windows and linux... (with different .so / .dll files from luasteam / sdk of course).

3.0.0 of luasteam -> file: osx_luasteam.so 1.58a of steam sdk -> file: libsteam_api.dylib

My Test project: https://github.com/Saturn91/pureLOVE2dSteamSetup_Mac_OS

My System: Screenshot 2024-06-11 at 22 47 52

Saturn91 commented 3 months ago

For others having the same isuue... it seems to be a security settings in Mac.

When I installed the app over steam and the App became "trusted" it worked as expected!

Saturn91 commented 3 months ago

See above