My macOS app is getting closed by the system

Hi,

I've been trying to resolve an issue that my users are facing for about one year, but I haven't been able to so far. That's why I'm turning to you all for some ideas.

Some of my users have noticed that my app suddenly exits. It runs in the background as a menu bar app, so when they go to use it, they realize it's no longer running.

I've checked Crashlytics and asked users to check their Console app for crash reports, but there are none. The conclusion so far is that it's not a crash, but a silent termination.

I haven't experienced this on my own machine, which makes it incredibly difficult to debug or identify the cause.

Recently, I thought I'd pinned down the problem. My app was declaring:

	<key>NSSupportsSuddenTermination</key>
	<true/>

Based on the documentation, this is intended to quickly terminate the app during logout or system shutdown, but I read it can also be triggered when the system needs resources. It seemed like the perfect root cause. However, even after turning it off, one of my users is still experiencing the problem. I'm officially running out of ideas.

Does anyone have suggestions on what else I should check?

My app currently declares:

	<key>LSUIElement</key>
	<true/>
	<key>NSSupportsAutomaticTermination</key>
	<false/>
	<key>NSSupportsSuddenTermination</key>
	<false/>
My macOS app is getting closed by the system
 
 
Q