macOS app store app - LoginItem not launching after login

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?
I’m confused by what you mean by “prod singed apps”. You tagged your post with Mac App Store, which suggestions you’re distributing that way. Are you seeing this problem with the app after you install it via the App Store?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"

I’m confused by what you mean by “prod singed apps”.

Both the main app and helper app are signed by 3rd Party Mac Developer Application.

You tagged your post with Mac App Store, which suggestions you’re distributing that way.

Yes the app is meant for Mac App Store submission and I need to qualify the login item mechanism

Are you seeing this problem with the app after you install it via the App Store?

No. The LoginItem mechanism is not yet available in the App Store build. This is being added now.

Adding more to my previous reply. The system is unable to launch the helper app after re-login on macOS 10.15 and 10.14, but this mechanism works fine on macOS 11.0.

Hi,

I'm facing the same issue. Is there any solution for this problem on iOS 10.14.6 ?

Is there any solution for this problem on [macOS] 10.14.6 ?

Service Management login items are particularly sensitive to the state of the machine. If you’re having problems on a particular machine, I recommend that you retest on a ‘fresh’ machine that’s running the same OS version. I generally do this in a VM. So:

  1. Install macOS 10.14.6 in a VM.

  2. Take a snapshot of your VM before it’s ever seen your app.

  3. Copy your app to /Applications.

  4. Launch the app.

  5. Enable your login item.

  6. Log out.

  7. Log back in.

If you need to retest, revert to the snapshot you took at step 2 and then repeat steps 3 through 7.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

macOS app store app - LoginItem not launching after login
 
 
Q