"Application damaged and can't be opened' error prompt on 15.6.1 Sequoia

We have an application which keeps throwing the error "application is damaged and cannot be opened. You should move it to Trash"

I have already referred to the documentation: https://developer.apple.com/forums/thread/706379 and https://developer.apple.com/forums/thread/706442

I have checked the following possible root causes:

  1. Codesign of the application using the codesign command
  2. Notarization of the application using the spctl command
  3. Executable permissions
  4. Checked for the presence of "com.apple.quarantine" flag for the application using xattr -l <path to executables"
  5. Checked the bundle structure

None of the above listed items seemed to be a problem and are as expected.

Can you please help us understand what could cause this issue and how to resolve this without recommending an uninstall/reinstall of the application?

Answered by DTS Engineer in 856499022
I have checked the following possible root causes:

Did you try pointing syspolicy_check at your app? What does it report?

For instructions, see the Run a System Policy Check section of Resolving Trusted Execution Problems.

Share and Enjoy

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

I have checked the following possible root causes:

Did you try pointing syspolicy_check at your app? What does it report?

For instructions, see the Run a System Policy Check section of Resolving Trusted Execution Problems.

Share and Enjoy

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

Yes, the application only shows the stapling error which I understand is not a "fatal" error from the documentation.

"Severity: Fatal Full Error: A Notarization ticket is not stapled to this application. Type: Distribution Error"

I have also run "/usr/bin/log show --predicate '(process == "syspolicyd") && (eventMessage CONTAINS "MyApp")'"

and

"/usr/bin/log show --predicate '(process == "trustd") && (eventMessage CONTAINS "MyApp")'"

I don't see any logs messages for the above two commands

the stapling error which I understand is not a "fatal" error

Correct. I actually filed a bug about the misrepresentation of that error as being fatal (r. 151446728) and I expect we’ll see that change sooner rather than later.

I don't see any logs messages for the above two commands

It’s unlikely you will because the app name is private data and, by default, that’s not recorded. Your Friend the System Log has a link to another post that explains how to record private data.

I’d like to take a look at your app. Can you post a download link? If so, please do. See tip 14 in Quinn’s Top Ten DevForums Tips if you have problems posting the link.

If you’re not able to share the link publicly, let me know by replying here and I can make other arrangements.

Share and Enjoy

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

Thank you. I will not be able to share the link publicly for my application. This is also not occurring on all of the MacOS machines my application is installed in, just a few machines.

Please let me know if we can raise a ticket for this. I can share more background and details on this issue in the ticket.

Even I am seeing the same in my product. syspolicy_check shows "Severity: Fatal Full Error: A Notarization ticket is not stapled to this application. Type: Distribution Error" .

"Application damaged and can't be opened' error prompt on 15.6.1 Sequoia
 
 
Q