Notarization hangs on notarytool submit
for hours without output #179
Open
Description
Im using "@electron-forge/cli": "^7.2.0"
which uses notarize under the hood. I provide credentials to notarize by passing them to my forge.config.js
like this:
osxSign: {
'identity': "Developer ID Application: MYCOMPANYNAME",
'hardened-runtime': true,
'gatekeeper-assess': false,
'entitlements': 'entitlements.plist',
'entitlements-inherit': 'entitlements.plist',
},
osxNotarize: {
tool: 'notarytool',
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APP_SPECIFIC_PASSWORD,
teamId: process.env.APPLE_TEAM_ID,
},
And I run electron-forge package
.
Expected Behavior:
Notarization succeeds or fails within 15 minutes.
Actual Behavior:
The notarization step hangs on the notarytool submit
step shown here:
electron-notarize:spawn spawning cmd: xcrun args: [
'notarytool', 'submit', '/var/folders/4g/p6tq8s_j4tqf78675mcggp8m0000gn/T/electron-notarize-F7fJr2/MYAPPNAME.zip',
'--apple-id', '*********',
'--password', '*********',
'--team-id', '*********',
'--wait',
'--output-format', 'json'
] opts: {} +0ms
Notes:
Running this command by hand hangs, but if I remove --wait
it succeeds in a couple minutes. My understanding of this wait flag is that its waiting on something else, but I dont understand what.
Removing the notarization steps prevents the hanging.
The zip is 0.3gb. I've checked that these vars are in my env. This issue has persisted all weekend.
What may be causing it to hang?