Another day another try :)
So my first attempt was a mixed bag. I managed to start submit the package to apple but the review says that they cannot open files.
The big issue with electron (now I am using Electron 7) is that – unlike Flutter for example – doesn’t give you an Xcode project to debug and submit the files to apple so I am working blind here: the local build with electron-packager AND npm start work totally fine but due to sandboxing restrictions you can’t try the .app/pkg as submitted to apple.
So after reading this guide and the apple reference I came to the conclusion that the apple reviewer cannot open the files from elektro editor (the app I am submitting you can check it here and yes it is a notarized DMG :) because I didn’t add a user-selected read and write entitlement. So here is the new one:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<!-- Add entitlements here -->
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
</plist>
Sent to the apple store again, fingers crossed !