touilleMan / godot-python

Python support for Godot 🐍🐍🐍
Other
1.87k stars 140 forks source link

MacOS Export crashes on startup #309

Open MysteryCoder456 opened 2 years ago

MysteryCoder456 commented 2 years ago

When I export for MacOS, and I copy the addons folder along as well, and finally open the exported app it just crashes. I get this error when running the app from the terminal:

ERROR: open_dynamic_library: Can't open dynamic library: /Users/rehatbir/Dev/Godot/PyWeek32/Infinity Slasher/exports/Infinity Slasher.app/Contents/MacOS/../Frameworks/libpythonscript.dylib, error: dlopen(/Users/rehatbir/Dev/Godot/PyWeek32/Infinity Slasher/exports/Infinity Slasher.app/Contents/MacOS/../Frameworks/libpythonscript.dylib, 0x0002): tried: '/Users/rehatbir/Dev/Godot/PyWeek32/Infinity Slasher/exports/Infinity Slasher.app/Contents/MacOS/../Frameworks/libpythonscript.dylib' (code signature in <B0E47E82-57B2-326A-9696-B1B75C089F2D> '/Users/rehatbir/Dev/Godot/PyWeek32/Infinity Slasher/exports/Infinity Slasher.app/Contents/Frameworks/libpythonscript.dylib' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/usr/lib/libpythonscript.dylib' (no such file), '/Users/rehatbir/Dev/Godot/PyWeek32/Infinity Slasher/exports/Infinity Slasher.app/Contents/Frameworks/libpythonscript.dylib' (code signature in <B0E47E82-57B2-326A-9696-B1B75C089F2D> '/Users/rehatbir/Dev/Godot/PyWeek32/Infinity Slasher/exports/Infinity Slasher.app/Contents/Frameworks/libpythonscript.dylib' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/usr/lib/libpythonscript.dylib' (no such file).

It appears that it can't open the libpythonscript.dylib file that's present in the Frameworks folder for the app because it doesn't have a Team ID. I even tried to codesign the dylib files manually through the terminal but to no avail :(

MysteryCoder456 commented 2 years ago

https://hastebin.com/azeferetup.apache Here's a hastebin for convenience.