Hi! I am trying to run the demo app(SampleEndpointApp) from the WWDC2020 presentation(link). Here are the steps I followed in order to run the app:
- I submitted a request for the Endpoint Security entitlement and got the approval from the Apple Support team.
- Created an identifier and assigned Endpoint Security capability.
- Updated the Bundle Identifier in ViewController.m and in the Extension target.
- Built and copied the app bundle to /Application folder.
- Ran the app, clicked "Install Extension" and got the confirmation message that everything went well.
Looking into the logs, I see the following :
(libEndpointSecurity.dylib) Failed to open service: 0xe00002d8: Caller lacks TCC authorization for Full Disk Access
I keep getting the same message even after granting SampleEndpointApp Full Disk Access in Privacy & Security.
System : macOS Sequoia 15.1.1
Could you please assist me with this issue?
Andrei
Hmmm, interesting. This is working for me. Here’s how I tested it:
-
I downloaded the Monitoring System Events with Endpoint Security sample.
-
I opened the project in Xcode 16.2.
-
In the Signing & Capabilities editor, I selected my team for both the app and extension targets.
-
In
ViewController.m
, I added my Team ID (SKMME9E2Y8) to the extension ID. -
I built the app.
-
I copied it to a macOS 15.1 VM.
-
In the VM, I moved the app to the Applications folder.
-
I ran Console and starting a search for “Failed to create”.
-
I launched the app.
-
And clicked the Install Extension button.
-
I ran through the approval process.
-
In Console I saw the extension trying to start and failing. Specifically, I saw the log message
Failed to create the ES client: 4
, where 4 isES_NEW_CLIENT_RESULT_ERR_NOT_PERMITTED
. -
In System Settings > Privacy & Security > Full Disk Access, I enabled the extension.
-
I stopped seeing the errors from step 12, and the extension started successfully:
% sudo launchctl list SKMME9E2Y8.com.example.apple-samplecode.SampleEndpointAppSKMME9E2Y8.Extension
{
"LimitLoadToSessionType" = "System";
"MachServices" = {
"SKMME9E2Y8.com.example.apple-samplecode.SampleEndpointAppSKMME9E2Y8.Extension.xpc" = mach-port-object;
};
"Label" = "SKMME9E2Y8.com.example.apple-samplecode.SampleEndpointAppSKMME9E2Y8.Extension";
…
"PID" = 786;
…
};
I’m not sure why this problem is showing up on your machine. In my experience it’s common to see weird TCC problems on developer machines. That’s why I always test stuff like this on a ‘clean’ machine, typically a VM.
IMPORTANT When testing in a VM, be aware of the issue discussed in this thread.
Are you able to try this on a different machine? If so, please do. If not, you might be able fix your current machine with tccutil
.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"