Closed diuming closed 4 years ago
Does the compiler throw an error?
If it seems to be silently failing, in my experience there's a good chance you're just not getting to see what's happening inside your helper, since it's a second process.
It's possible to ask Xcode to debug both processes. One method is: Debug
> Attach to Process by PID or Name...
and entering as the name com.github.erikberglund.SwiftPrivilegedHelper
:
Incidentally, I am sure there'd be a way to have Xcode do this every time, instead of having to tell it via Attach to Process by PID or Name...
. Can anyone enlighten me? :)
I add a function in HelperProtocol, but openFile never be called. Could you give me advice?