I was investigating how to build widelands for Apple Silicon.
I found your tool and it worked quite fine but the App crashed with EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
I checked and found that codesign --sign - --force * in .app/Contents/libs actually fixes the issue.
I think you want to incorporate this your tool to fix this issue, before more people get a headache.
I found this problem too, is that becoming an issue since the Apple transition to ARM architecture? I saw the cmake project's members are dealing with this issue too.
I was investigating how to build widelands for Apple Silicon. I found your tool and it worked quite fine but the App crashed with.app/Contents/libs actually fixes the issue.
EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
I checked and found thatcodesign --sign - --force
* inI think you want to incorporate this your tool to fix this issue, before more people get a headache.