Description
When submitting a MATLAB-compiled .app for notarization on macOS, the process fails with errors such as:
- 
“The executable does not have the hardened runtime enabled” 
- 
“The signature of the binary is invalid” 
- 
“unsealed contents present in the bundle root” 
The failure seems related to the way MATLAB Compiler packages the runtime:
- 
The outer application (MyApp.app) includes Contents/Resources/bundle.zip. 
- 
Inside this zip is another .app (MyDesktopApplication.app) with its own executables. 
- 
Apple’s notarization service expands bundle.zip and checks binaries inside it. 
- 
Since these are not pre-signed or hardened, notarization rejects the archive.