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)
create an app target, and build an "app" but with all the code that goes into the [
daemon]launchd
This.
Its really not clear to me exactly what you mean by "app-like structure"
Fair enough. This question has cropped up a lot recently, so I created a new post, Packaging a Daemon with a Provisioning Profile, that explains it in depth. Let me know if you still have problems, or you have any general feedback about that post.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"