Debug Finder sync extension waiting to attach

Hi,


When I try to debug a finder sync extension, I launch the finder but the init method of the extension is never called. The Debug navigator says 'waiting to attach'.

I am using XCode 6.4 and macos 10.10.5.


Can you help me please.


Regards

Answered by doovers in 49036022

Hi, I just had the same problem. My first attempt was to create an empty project and add the finder sync target and I got the same behaviour you describe. My second attempt was to create a new cocoa application and add the finder sync target. This time it worked perfectly. Hope that helps!

Accepted Answer

Hi, I just had the same problem. My first attempt was to create an empty project and add the finder sync target and I got the same behaviour you describe. My second attempt was to create a new cocoa application and add the finder sync target. This time it worked perfectly. Hope that helps!

Hi,

Thank you very much!

It's work perfectly 🙂

Hi,


it worked for me also. It is really weird though 🙂. I hope this will be fixed in the next version of xCode.


Thanks,

I am also facing the same issue.

Does that mean, I need to delete existing containing app, create new cocoa containing app and add the FinderSync target to it?


Note: I already have containing application in my project, then added FinderSync target. It was running and displaying overlay icons. When I added some more checks in overlay icon code and run, I am observing "Waiting to attach" in debug navigator.


How should I resolve it and get my plugin to load successfully and display appropriate overlay icons?

Hello Lakshmi,


My project was an empty project, and when i create a new cocoa application with a finder sync extension, that work.

When you relaunch the finder sync in debug, don't forget to relaunch the Finder, otherwise the extension will be "Waiting to attach" undefinitly.


Regards,

When running my FinderSync target in Xcode, in the debug navigator it reads "Waiting to attach". I have to manually select "Debug > Attach to Process > My FinderSync target" (listed at the top under Likely Targets). I don't understand how Apple never cared to comment on this issue, which could easily be avoided by improving Xcode, and chose to let us find this out by ourselves.

Debug Finder sync extension waiting to attach
 
 
Q