I signed my application with a "Developer ID Application: ***" certificate. The "runtime" option is enabled. Entitlements plist file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
</dict>
</plist>
The application starts normally. Then i create dmg and sign it:
productbuild --component APP.app /Applications APP.dmg
codesign --verbose -f -o runtime --entitlements entitlements.plist -s "Developer ID Application: ***" APP.dmg
And after notarization I get:
Date: 2020-02-11 09:53:14 +0000
RequestUUID: dba8abd3-f80b-438c-8d26-db6d4654cdca
Status: invalid
What is wrong and where is the log?