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

Can't notarize application: alttool is deprecated and notarytool not found #101

Open
perry-mitchell opened this issue Mar 28, 2024 · 1 comment

Comments

@perry-mitchell
Copy link

perry-mitchell commented Mar 28, 2024

Hi,

I'm seeing the following error when using this action to release on Mac:

  • signing         file=dist/mac/Buttercup.app identityName=Developer ID Application: <snip> identityHash=<snip> provisioningProfile=none
notarytool not found, trying legacy.
📦 Start notarizing <snip> found at /Users/runner/work/buttercup-desktop/buttercup-desktop/dist/mac/Buttercup.app
  ⨯ ❌ Notarization Error,please check notarization-error.log  failedTask=build stackTrace=Error: ❌ Notarization Error,please check notarization-error.log
    at module.exports (/Users/runner/work/buttercup-desktop/buttercup-desktop/node_modules/electron-builder-notarize/index.js:101:9)
    at MacPackager.doSignAfterPack (/Users/runner/work/buttercup-desktop/buttercup-desktop/node_modules/app-builder-lib/src/platformPackager.ts:332:7)
    at MacPackager.doPack (/Users/runner/work/buttercup-desktop/buttercup-desktop/node_modules/app-builder-lib/src/platformPackager.ts:314:7)

So it seems like it's using the older tool. I'm using the latest macos version, so I'm not sure what's wrong. You can see my entire build config here: https://github.com/buttercup/buttercup-desktop/blob/eb31dfca9014eb99151441e35386e8f6c850a546/.github/workflows/build.yml

notarytool is found however, at: /Applications/Xcode_14.2.app/Contents/Developer/usr/bin/notarytool, so I'm not sure what's going wrong here.

Contents of notarization-error.log:

Failed to upload app to Apple's notarization servers

2024-03-28 08:42:14.553 *** Error: Notarization failed for '/var/folders/h1/8hndypj13nsbj5pn4xsnv1tm0000gn/T/electron-notarize-lZEw0g/Buttercup.zip'.
2024-03-28 08:42:14.554 *** Error: Notarization of MacOS applications using altool has been decommissioned. Please use notarytool. See: https://developer.apple.com/documentation/technotes/tn3147-migrating-to-the-latest-notarization-tool With error code STATE_ERROR.NOTARIZATION_UNAVAILABLE for id eb99c3c0-5df4-449a-8d22-75a299c9618e Notarization using altool has been decommissioned (-19208)
 {
    NSLocalizedDescription = "Notarization of MacOS applications using altool has been decommissioned. Please use notarytool. See: https://developer.apple.com/documentation/technotes/tn3147-migrating-to-the-latest-notarization-tool With error code STATE_ERROR.NOTARIZATION_UNAVAILABLE for id eb99c3c0-5df4-449a-8d22-75a299c9618e";
    NSLocalizedFailureReason = "Notarization using altool has been decommissioned";
}
2024-03-28 08:42:14.554 *** Warning: Notarization of MacOS applications using altool has been decommissioned. Please use notarytool. See: https://developer.apple.com/documentation/technotes/tn3147-migrating-to-the-latest-notarization-tool (-1030)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants