Hello again, it seems like macOS memory protection kicks in and does not allow starting/restarting different executable.
Further, I have noticed that app built with xCode 16.4 allows daemon updates via SMAppService with unregister/register.
App built with xCode 26.0.1 does not succeed in the same approach.
Console output
After a while, toggling the System Preferences -> General -> Login items & extensions, it is possible to get the updated daemon running, but it's inconsistent.
Here's what I tried:
automatic update with SMAppService register/unregister after app update
toggle the daemon toggle in System Preferences after app update off/on.
manually call unregister command from app, wait a bit register.
All of these end up in daemon not starting the first time as in console log provided.
What is the correct way, to update the daemon with SMAppService?
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: