-
Has anyone ever had any success using bleak, PyInstaller, and MacOS code signing? I have successfully run the example file scan_iterator.py, and then built a PyInstaller app with: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I haven't tried packaging an app on Mac before, but https://bleak.readthedocs.io/en/latest/troubleshooting.html#bleak-crashes-with-sigabrt-on-macos describes what needs to go in the |
Beta Was this translation helpful? Give feedback.
-
Turns out the 'magic' is simple: the entitlement required is com.apple.security.cs.allow-unsigned-executable-memory. I think I was including another entitlement (in addition to this one) that 'broke' the signing.
and here's the build command: |
Beta Was this translation helpful? Give feedback.
Turns out the 'magic' is simple: the entitlement required is com.apple.security.cs.allow-unsigned-executable-memory. I think I was including another entitlement (in addition to this one) that 'broke' the signing.
Here's the entitlements.plist file:
and here's the build command:
% pyinstaller --onefile scan_iterator.py --codesign-identity "Developer ID Application: xxxxxxxx (XXXXXXXX)" --osx-entitlements-file entitlements.plist