Notarize stuck "In Progress"

Hello, I've developed an application using ElectronNET with C# and Blazor Server. I have managed to deploy to both Windows and the web but having trouble deploying the application to my Mac users.

It's my first time deploying an application for Mac but feel like I'm stuck at the last hurdle and out of ideas so I'm reaching out for help.

My application is successfully signing but during the build and when my Notarize.js is running it seems to get stuck indefinitely.

I can check and see the status of the Notarize attempts but they seem to be stuck "In Progress". Here are the logs.

Successfully received submission history.
  history
    --------------------------------------------------
    createdDate: 2024-06-12T22:16:35.362Z
    id: 26192605-001b-46ae-b622-9a79c20e1e93
    name: CustomerSupportDashboard.zip
    status: In Progress
    --------------------------------------------------
    createdDate: 2024-06-12T18:51:21.772Z
    id: 6a34501c-8f48-4986-ae5e-82a99320dcbc
    name: CustomerSupportDashboard.zip
    status: In Progress
    --------------------------------------------------
    createdDate: 2024-06-12T15:13:44.722Z
    id: ea5cd928-8207-4d25-b74a-45b04960dbe0
    name: CustomerSupportDashboard.zip
    status: In Progress
    --------------------------------------------------
    createdDate: 2024-06-12T14:24:48.776Z
    id: 00ccd1f9-daa4-4bba-9a86-9f577c51f26b
    name: CustomerSupportDashboard.zip
    status: In Progress
    --------------------------------------------------
    createdDate: 2024-06-12T14:07:43.116Z
    id: bf5dfa9c-9702-413b-8fbb-94017e930bcf
    name: CustomerSupportDashboard.zip
    status: In Progress

These have been running for over 6hours now and it's my understanding it should take minutes, correct me if I'm wrong?

Here is my Notarize script if it helps diagnose what might be happening. Although the requests seem to be going through ok so it doesn't seem likely.

const { join } = require('path');
const fs = require('fs-extra');

exports.default = async function notarizing(context) {
  const { electronPlatformName, appOutDir } = context;
  if (electronPlatformName !== 'darwin') {
    console.log("Not a macOS platform, skipping notarization.");
    return;
  }

  const appName = context.packager.appInfo.productFilename;
  const appPath = `${appOutDir}/${appName}.app`;
  const zipPath = `${appOutDir}/${appName}.zip`;

  console.log(`Zipping the app at path: ${appPath} to: ${zipPath}`);

  // Zip the app
  await new Promise((resolve, reject) => {
    execFile('zip', ['-r', zipPath, appPath], (error, stdout, stderr) => {
      if (error) {
        console.error(`Failed to zip app: ${stderr || stdout}`);
        reject(new Error(`Failed to zip app: ${stderr || stdout}`));
      } else {
        console.log(`Successfully zipped app: ${stdout}`);
        resolve();
      }
    });
  });

  console.log(`Notarizing the app with Apple ID: *************.*****@*******.****`);

  await new Promise((resolve, reject) => {
    execFile('xcrun', [
      'notarytool',
      'submit',
      zipPath,
      '--apple-id', '*************.*****@*******.****',
      '--password', '****-****-****-****',
      '--team-id', '**********',
      '--wait',
      '--output-format', 'json'
    ], (error, stdout, stderr) => {
      if (error) {
        console.error(`Notarization failed: ${stderr || stdout}`);
        reject(new Error(`Notarization failed: ${stderr || stdout}`));
      } else {
        console.log(`Successfully notarized: ${stdout}`);
        resolve();
      }
    });
  });
}; ```


Answered by Engineer in 790579022

You can expect that most uploads will be notarized quickly. Occasionally, some uploads are held for in-depth analysis and may take longer to complete.

We checked and everything seems to be working as expected. As you notarize your apps, the system will learn how to recognize them, and you should see fewer delays.

Accepted Answer
These have been running for over 6 hours now and it's my understanding it should take minutes, correct me if I'm wrong?

That’s true is the vast majority of cases, but in some cases it can take a lot longer. I most commonly see this when folks are notarising for the first time. My general advice is that you give it a few days (yes, days) to complete. If it’s still stuck by, say, Monday, write back here and I’ll take another look.

The good news here is that, once you clear the hurdle, future notarisations are very likely to be fast.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

You can expect that most uploads will be notarized quickly. Occasionally, some uploads are held for in-depth analysis and may take longer to complete.

We checked and everything seems to be working as expected. As you notarize your apps, the system will learn how to recognize them, and you should see fewer delays.

Hi Nathturton. I apologize for hijacking this thread but I don't see an option to communicate with you directly through the forum interface. I too am attempting to run a signed (not notarized) at this point application using ElectronNet and Blazor on my intel iMac and the application will crash on startup immediately with

"Unable to get bundle identifier for container id Sogic: Unable to get bundle identifier because Info.plist from code signature information has no value for kCFBundleIdentifierKey."

Did you do anything special to embed a working Info.plist file into your Blazor server binary? I'm curious how you have gotten your application to actually run on a Mac if it fact you have done so after it has been signed and in an app sandbox.

Notarize stuck "In Progress"
 
 
Q