Is there a way to debug Network Extension?

My APP contains a Unix Domain Socket inside the Network Extension that is for communication between UI and Network Extension .

It had been made a connection between UI and Network Extension within App Extension. But after the Network Extension moved to System Extension, It can't make the connection anymore.

Because every directories are made by NSFileManager under
Code Block
/var/root/
So, The client socket that in UI Process could not made a connection to the socket server inside System Extension ( include Network Extension )

I try to debug with XCode but it doesn't work. I already turned off the SIP. And set
Code Block
systemextensionctrl developer on

But it doesn't help.

Is there a way to debug System Extension with XCode?

Is there a way to debug System Extension with Xcode?

Assuming that SIP is off and you built your sysex with the get-task-allow entitlement, you should be able to attach to the sysex from the debugger like you would any other root process.

But…

Because every directories are made by NSFileManager under /var/root/

It sounds like you already know what’s going on here. System extensions run as root, so this is expected behaviour.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Finally, I figure out that how to attach Debugger to the process. Thank You.
Is there a way to debug Network Extension?
 
 
Q