Notarizing Electron apps throws - "You must first sign the relevant contracts online. (1048)" error : <p>I am trying to Notarize an electron app to make it run on macOS Catalina. The packaging was successful but the <code>xcrun altool</code> command is throwing "You must first sign the relevant contracts online. (1048)" error.</p>

<p>Electron app package.json contents:</p>

<pre><code>"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,
</code></pre>

<p>entitlements.mac.inherit.plist file:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
  &lt;dict&gt;
    &lt;key&gt;com.apple.application-identifier&lt;/key&gt;
    &lt;string&gt;&lt;app.bundle.name&gt;&lt;/string&gt;
    &lt;key&gt;com.apple.developer.team-identifier&lt;/key&gt;
    &lt;string&gt;&lt;TEAMID&gt;&lt;/string&gt;
    &lt;key&gt;com.apple.security.app-sandbox&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;com.apple.security.application-groups&lt;/key&gt;
    &lt;array&gt;
      &lt;string&gt;&lt;app.bundle.name&gt;&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;com.apple.security.network.client&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;com.apple.security.cs.allow-unsigned-executable-memory&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;com.apple.security.inherit&lt;/key&gt;
    &lt;true/&gt;
  &lt;/dict&gt;
&lt;/plist&gt;
</code></pre>

<p>I ran the command as mentioned in <a href="https://stackoverflow.com/a/53121755">https://stackoverflow.com/a/53121755</a></p>

<pre><code>xcrun altool --notarize-app -f App.dmg --primary-bundle-id app.bundle.name -u &lt;username&gt; -p &lt;app-specific-password&gt;
</code></pre>

<p>It is throwing <em>You must first sign the relevant contracts online. (1048)</em> error. I am unable to proceed with the app signing. Help!</p>

<p>ps: electron-notarize package is throwing the same error.</p>
