Finder Sync/Overlays Extension not launching

孤人 提交于 2020-05-17 07:46:09

问题


I am facing an issue where finder overlays sync icons are not shown.

Here is the code that I tried:

NSString* bundleID = @"com.my.myapp"; 
NSString* extBundleID = [NSString stringWithFormat:@"%@.finderoverlays", bundleID];
NSString* runCommand = [NSString stringWithFormat:@"pluginkit -e use -i %@", extBundleID];

NSLog(@"runcommand= %s", runCommand.UTF8String);

int result = system(runCommand.UTF8String);

NSLog(@"setting up finder overlays, returned = %d", result);

The result is always 0, but the extension is not shown on the SystemPreference's extension tab. When I run the project, directly using Xcode then the extension is shown in System Preferences.

What am I missing here?

Do I need to keep the appex file somewhere at a specific location?

来源:https://stackoverflow.com/questions/61770116/finder-sync-overlays-extension-not-launching

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!