1

i create a cocoa application project, and add target "Finder sync extension". Then the "finderSync.appex" will be put to ".../Contens/Plugins/" folder. But when i launch the application, the extension is not loaded automatically, should i load it manually ? How can i load it ?

From the Apple developement guide, it says:

For OS X to recognize and automatically load the Finder Sync extension, the extension target’s info.plist file must contain the following entries:

<key>NSExtension</key>
<dict>
    <key>NSExtensionAttributes</key>
    <dict/>
    <key>NSExtensionPointIdentifier</key>
    <string>com.apple.FinderSync</string>
    <key>NSExtensionPrincipalClass</key>
    <string>$(PRODUCT_MODULE_NAME).FinderSync</string>
</dict>

I already set as the above, but it doens't work.

jimwan
  • 1,086
  • 2
  • 24
  • 39
  • Hi, I am facing the same issue. Could you resolve this. On adding $PRODUCT_MODULE_NAME the app crashes. Manually it can be done in this fashion, but i am not sure if this is how it is supposed to be done. https://stackoverflow.com/questions/31176942/how-to-enable-findersync-extension-in-the-system-preference-in-cocoa-objective – Sandeep T D S Jun 13 '17 at 04:31

1 Answers1

1

You need to register your extension with Finder:

pluginkit -a <path you your appex>

You might also need to tell Finder to enable your extension:

pluginkit -e use -i <ID of you appex>
Liviu
  • 1,859
  • 2
  • 22
  • 48