I am facing an issue while codesigning the Content/MacOS executable. The executable name is exactly similar to the .app file, and the signing certificates have not expired yet.
Steps followed to generate signed files:
- Executed codesign on files within the .app folder.
 - Then executed codesign on the .app folder.
 - Tried to notarize with the new notarization tool.
 
Do we have to sign each individual file and folder?
Observations:
- .DS_Store files were removed from the .app before signing.
 - Another app with the same certificate is able to sign correctly.
 - Content/MacOS contains multiple files, including the app executable. These files are signed except the main executable.
 - same installed_app after copying at another location showing signed.
 
Getting:
- App Sandbox-Not enabled
 - Hardening-Enabled - Version 10.9.0
 - Notarization-Granted
 - Gatekeeper-Can't evaluate
 - Signed By- Can't verify signature