The executable was signed with invalid entitlements.
The entitlements specified in your application’s Code Signing Entitlements file do not match those specif
None of the previous answers either applied or worked for me. In my case, updating the settings of the test project, as follows, fixed it: