I have a finder sync extension app. While running an app the breakpoints and console is not working.
OS X Finder Sync App not attaching to xcode debugger
604 views Asked by Velu Loganathan At
2
There are 2 answers
2
On
- create a new cocoa application and add the finder sync target.
- select the extension target by following steps Product -> Scheme -> FINDER_SYNC_EXT
- choose the xcode debuger for attaching finder sync extension Debug -> Attach to Process by PID or Name - > Attach
- xcode status will be updated to "Waiting to attach to FINDER_SYNC_EXT"
- set your breakpoints in init() method of extensions principle class and run your extension
- your breakpoints will be triggered by now.
2
On
Firstly, you need to register your extension in Finder:
pluginkit -a <path you your debugging appex>
Then, you have to wait to attach to the running instance in Xcode: Debug menu, Attach to Process by PID or Name ... and then enter the name of your executable. Now Xcode is waiting for it to start.
Finally, tell Finder to enable your extension (or restart Finder):
pluginkit -e use -I <ID of you appex>