godot-python icon indicating copy to clipboard operation
godot-python copied to clipboard

MacOS Export crashes on startup

Open MysteryCoder456 opened this issue 2 years ago • 1 comments

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 avatar Sep 24 '21 12:09 MysteryCoder456

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

MysteryCoder456 avatar Sep 24 '21 12:09 MysteryCoder456