Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frequently receiving {"code":null,"output":""} as a result #125

Open
summera opened this issue Jan 7, 2023 · 3 comments
Open

Frequently receiving {"code":null,"output":""} as a result #125

summera opened this issue Jan 7, 2023 · 3 comments

Comments

@summera
Copy link

summera commented Jan 7, 2023

Hello, when building for Mac I'm very frequently getting notary exceptions and the result from the notarytool is {"code":null,"output":""}. This leads to the following error output when making with Forge:

An unhandled rejection has occurred inside Forge:
Error: Failed to notarize via notarytool

at Object.<anonymous> (MY_PATH/node_modules/@electron/notarize/lib/notarytool.js:97:23)
    at Generator.next (<anonymous>)
    at fulfilled (MY_PATH/node_modules/@electron/notarize/lib/notarytool.js:4:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

I'm building using an appleId and appleIdPassword:

  "packagerConfig": {
    "osxSign": {},
    "osxNotarize": {
      "tool": "notarytool",
      "appleId": process.env.APPLE_ID,
      "appleIdPassword": process.env.APPLE_PASSWORD,
      "teamId": process.env.APPLE_TEAM_ID
    },
...

After I retry making enough times, it eventually works but the cycle can be very time consuming and failures are happening pretty frequently. Any help would be greatly appreciated! Thanks.

@zeevl
Copy link

zeevl commented Jan 17, 2023

Been dealing with the exact same thing for quite some time. The notarytool history shows it submitted, but seems stuck in "processing".

Would love some ideas on how to work around or fix!!

@thomas-void0
Copy link

I have same question. But I'm worse than you.My terminal will always hang.Will not end.
image

@thomas-void0
Copy link

I have same question. But I'm worse than you.My terminal will always hang.Will not end. image

this questioni is sloved.Because I ignored the necessary conditions.
image
I think there should be a link here, or a template.

<?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>
    <!-- https://github.com/electron/electron-notarize#prerequisites -->
    <key>com.apple.security.cs.allow-jit</key>
    <true/>
    <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
    <true/>
    <!-- https://github.com/electron-userland/electron-builder/issues/3940 -->
    <key>com.apple.security.cs.disable-library-validation</key>
    <true/>
  </dict>
</plist>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants