OK, bear with me here…I’m working on bringing a very, very old Mac OS app (from realbasic days) into the present, in order to support recent Mac OS versions (64-bit), etc. I have already:
- got the app working on my Mac running Mac OS 11.4.
- obtained a Developer ID Application certificate from Apple.
- purchased App Wrapper 4 to help with the codesigning and notarization.
- successfully (AFAIK) codesigned and notarized my app, yielding a finished ZIP archive.
The app itself was originally designed to be “portable”, in the sense that:
- a bit of demo data is included in a “data” folder alongside the app in the ZIP archive
- the app should be able to read/write data to this sidecar folder so that it can be easily run from anywhere, such as a folder on the desktop, a USB stick, etc.
My problem is that if I put the prepared ZIP archive on the web and download it:
- I get a (normal) Gatekeeper prompt asking if it’s OK to run the app (and that it’s been scanned by Apple…so notarization OK). Fine with this.
- the app runs, but is unable to read the sidecar folder. This causes all sorts of trouble.
For whatever reason, the app is not getting the permissions it needs to access the folder right beside it.
If I forcefully unquarantine the app using
xattr -r -d com.apple.quarantine myapp.app
then it works perfectly.
Ideas about what I’m missing or what more info I could provide in order to troubleshoot this further?