Posts

Post not yet marked as solved
4 Replies
1.8k Views
iHi guys,I have a MacOS app built in Python that I would like to submit to the Mac App Store. Apple documentation claims that I must code sign my app with the Sandbox entitlement in order to qualify the app for the App Store. However, sandboxing the app causes it to break, and I believe it is because:1. My app is using Python's built-in "os" module to read and get the paths of files2. My app is using Python's built-in "sys" module to check the operating systemTo give you more context, the app is built using py2app and works just fine until it is sandboxed. I don't want to release it as .pkg or .dmg because of a host of other issues with Apple's notarization process. Here is the error I am getting when running the executable file in my bundle after codesigning with the sandbox entitlement:Traceback (most recent call last): File "site.pyo", line 22, in <module> ( ImportError: No module named os logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed.I'm certain it is because 'os' is outside of my sandbox container. This is all just my best guess after a lot of digging, but I could be wrong.I read that com.apple.security.temporary-exception is a potential fix, but it is not acceptable for release in the Apple Store. Please help as I am running out of ideas. Are there any solutions to this problem or do I just have to accept that my app cannot be released to the Apple Store?
Posted
by qche.
Last updated
.