Thank you Quinn for your support.
I finally solved the issue. I checked the system log and found this error: syspolicyd: [com.apple.syspolicy.exec:default] Error Domain=GatekeeperPolicyScanError Code=-67018 "Code did not match any currently allowed policy" UserInfo={NSURL=file:///Applications/HotelOrganizer.app/Contents/Frameworks/numpy/_core/_multiarray_umath.cpython-311-darwin.so, NSLocalizedDescription=Code did not match any currently allowed policy}
I then tried to delete the file _multiarray_umath.cpython-311-darwin.so from my app bundle, and the gatekeeper finally accepted the app. BINGO!
However, without that files, my app crashes. Thus I tried to move this file from Frameworks folder to Resources folder and it also worked with gatekeeper. After some fighting with pyinstaller and other dependencies that were refusing to import numpy from the new location, I finally manage to defeat gatekeeper while having my app working well.
Now some feedback for Apple:
I find it completely illogical that gatekeeper rejects notarised apps. The errors should appear during notarisation, not afterwards.
If the errors appear in the system log, why aren't they reported also in the warning message of gatekeeper? This would make debugging 10x easier.
syspolicy_check was useless in my case since it didn't provide any extra info that helped me to debug.
Topic:
Code Signing
SubTopic:
Entitlements
Tags: