The executable does not have the hardened runtime enabled.

I have a xamarin application for mac OS which I tried to notarize, notarization failed with error "The executable does not have the hardened runtime enabled." As suggested by many blogs I have manually added an Entitlements.plist file and added    <CodeSignEntitlements>Entitlements.plist</CodeSignEntitlements>
in .csproj file along with
    <UseHardenedRuntime>true</UseHardenedRuntime>. In Entitlements.plist file it contains only com.apple.security.cs.allow-jit (Since I do not need anything specific). I sent app for notarization for the second time, but still this error "The executable does not have the hardened runtime enabled." raised by Apple Notary Service.

Anyone having any idea how to resolve this issue.

Did you figure out how to do this?

Try this: In the target's Build settings, you can set Enable Hardened Runtime to Yes for both the Debug and Release builds. Setting this for the Release build might help.

The executable does not have the hardened runtime enabled.
 
 
Q