我創建一個可可應用程序項目,並添加目標「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-目標 –