The executable was signed with invalid entitlements.
The entitlements specified in your application’s Code Signing Entitlements file do not match those specif
For me, it was an inconsistency between Debug profile (it was automatic) and Release profile (it was manual). Setting them both automatic/manual resolved the issue.