macOS app store app - LoginItem not launching after login

Hello,


My app has a helper application to register with launched using-

SMLoginItemSetEnabled

When both the main app and helper app are signed with dev cert, the helper app is launched/called as soon as you login, but a prod singed apps do not work as expected. In this case, the helper app is not auto launchd upon login.

This behavior is not seen in macOS 11.0/11.1. Here the prod signed helper app is launched as expected upon login.

Upon further investigation, I found the following log entries in system.log file

Feb 11 00:38:33 MacBook-Pro com.apple.xpc.launchd[1] (com.company.HelperApp[2121]): LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
Feb 11 00:38:33 MacBook-Pro com.apple.xpc.launchd[1] (com.company.HelperApp[2121]): Service exited with abnormal code: 78
Feb 11 00:38:33 MacBook-Pro com.apple.xpc.launchd[1] (com.company.HelperApp): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

What does the log mean and how can I get the prod signed builds to work as expected?

Posted on Feb 10, 2021 11:18 PM

Reply

Similar questions

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

macOS app store app - LoginItem not launching after login

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.