I am unable Debugging system extensions for macOS it seems Waiting for attach

Hi,

I am implemented Network Extension(System Extension) in MacOS App and Capability DNS Proxy , I setup all configuration when I tried to attach System extension it shows Waiting for attach and breakpoints and logs are not working

Can you please help me this issue

Yeah, there isn't a lot great ways to attach the debugging from Xcode itself in the context of a System Extension because the container app needs to be added to the /Applications folder to start. So there are a few options from there:

  • Once the container app is in the /Applications folder you can stream logs from both the Network System Extension or the container app's process with something like log stream --level debug --predicate subsystem == "com.example.apple-samplecode.TransparentProxyTestBed"
  • Or you can attempt to attach the debugger from the launched process with something like (lldb) process attach, but this can also have mixed results.

What Matt said but also…

Check out my Debugging a Network Extension Provider post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I am unable Debugging system extensions for macOS it seems Waiting for attach
 
 
Q