我创建一个可可应用程序项目,并添加目标“Finder同步扩展”。然后将“finderSync.appex”放到“.../Contens/Plugins /”文件夹中。但是,当我启动应用程序,扩展不会自动加载,我应该手动加载它?我如何加载它?如何自动使查找程序同步扩展程序加载?
从Apple的研究与开发指南,它说:
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>
我已经被设置为上述,但它好好尝试的工作。
嗨,我面临着同样的问题。你能解决这个问题吗? 添加$ PRODUCT_MODULE_NAME时,应用程序崩溃。 手动它可以以这种方式完成,但我不确定是否应该这样做。 https://stackoverflow.com/questions/31176942/how-to-enable-findersync-extension-in-the-system-preference-in-cocoa-目标 –