After create the app instance.
A sample demo code:
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSApplication *app = [NSApplication sharedApplication];
BOOL returnValue = [NSApp setActivationPolicy: NSApplicationActivationPolicyAccessory];
}
return NSApplicationMain(argc, argv);
}
Post
Replies
Boosts
Views
Activity
I found that this is caused by the helper running in a sandbox. If the helper is in a non-sandbox environment, the downloaded dmg and installed app can be opened correctly.
Is this expected? Are there any solutions?