Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug FinderSync extension in Xcode

I created a FinderSync extension, when I run the extension target, the console and the breakpoints did nothing, so how to debug the extension in xcode? I'm a new devleoper for MacOS.

like image 486
mgfjx Avatar asked May 12 '26 23:05

mgfjx


1 Answers

This works for me...

  1. Create a new application project
  2. Add a new target - File -> New Target and add the finder sync target.
  3. When you are ready to debug, select the extension target - Product -> Scheme -> --Your FINDER_SYNC_EXT Name --
  4. Choose the Xcode Debugger for attaching finder sync extension - Debug -> Attach to Process by PID or Name
  5. Chose your extension and click Attach
  6. Xcode status panel will be updated to "Waiting to attach to -- Your FINDER_SYNC_EXT Name --"
  7. Set your breakpoints and run your extension.

Your breakpoints will be triggered.

like image 134
Spanners Avatar answered May 14 '26 11:05

Spanners



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!