@DTS Engineer
You’re signing your code with --deep, which is a bad idea. See --deep Considered Harmful. If you’re going to sign code manually, rather than with Xcode, check out:
No difference with and without --deep. The first app run works well, next runs work badly.
I experimented with many codesign variants, I started with a version copied from Xcode .xcactivitylog.
However, I strongly recommend that you enable the hardened runtime regardless of your deployment channel.
Does it mean I cannot check if hardened runtime entitlements take effect with the developer/ad-hoc signature?
I plan to check it locally with ad-hoc or personal developer ID if I can fix that and pay for the developer account only if I see, that it makes sense to do.
Topic:
Code Signing
SubTopic:
Entitlements