I am trying to Notarize an electron app to make it run on macOS Catalina. The packaging was successful but the xcrun altool
command is throwing "You must first sign the relevant contracts online. (1048)" error.
Electron app package.json contents:
"mac": {
"entitlements": "./build/entitlements.mac.inherit.plist",
"hardenedRuntime": true,
"type": "distribution",
"category": "public.app-category.productivity",
"icon": "build/icon.icns",
"target": [
"dmg",
"zip"
]
},
"dmg": {
"sign": false,
entitlements.mac.inherit.plist file:
<?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.application-identifier</key>
<string><app.bundle.name></string>
<key>com.apple.developer.team-identifier</key>
<string><TEAMID></string>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string><app.bundle.name></string>
</array>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.inherit</key>
<true/>
</dict>
</plist>
I ran the command as mentioned in https://stackoverflow.com/a/53121755
xcrun altool --notarize-app -f App.dmg --primary-bundle-id app.bundle.name -u <username> -p <app-specific-password>
It is throwing You must first sign the relevant contracts online. (1048) error. I am unable to proceed with the app signing. Help!
ps: electron-notarize package is throwing the same error.
It has been two years since I asked this and I had to bookmark my own question just because Apple keeps annoying the devs with such frequent policy changes.