Skip to content

Instantly share code, notes, and snippets.

@fbaiodias
Last active November 6, 2023 17:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbaiodias/ec08ee0141e06a98470230e564220cfa to your computer and use it in GitHub Desktop.
Save fbaiodias/ec08ee0141e06a98470230e564220cfa to your computer and use it in GitHub Desktop.
Error: Unable to upload your app for notarization. --notarize-app is missing one or more required options: --asc-provider.

Missing --asc-provider when notarizing app

Problem

*** Error: Unable to upload your app for notarization. --notarize-app is missing one or more required options: --asc-provider. (-1027)
 {
    NSLocalizedDescription = "Unable to upload your app for notarization.";
    NSLocalizedFailureReason = "--notarize-app is missing one or more required options: --asc-provider.";
}

Solution

Add ascProvider to Electron Notarize options: https://github.com/electron/electron-notarize#method-notarizeopts-promisevoid

If using electron forge:

const config = {
  ...

  packagerConfig: {
    ...
    osxNotarize: {
      appleId: process.env.APPLE_ID,
      appleIdPassword: process.env.APPLE_ID_PASSWORD,
      ascProvider:  process.env.APPLE_TEAM_ID
    },
    ...
  }
}
@blackmann
Copy link

Thanks

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