I have a built launchDaemon and want to apply the endpoint security extension entitlements I downloaded from my apple dev account.
So far I've tried:
1) download the provisioning profile from dev console.
2) extract the entitlements into a '.entitlements' file, via 'security cms -D -i securitytool.provisionprofile > securitytool.entitlements
3) applying that entitlements with 'codesign --entitlements securitytool.entitlements -f -s "[APPLICATION_ID]" [BINARY]
Result:
es_new_client() is getting back 'ES_NEW_CLIENT_RESULT_ERR_NOT_ENTITLED'
This is dispite displaying valid entitlements when using `codesign -d --entitlements - [BINARY]' - everything seems fine
Please could you tell me step by step how to add valid entitlements to a built launch daemon ? (I build offline on a different machine)