Additional Info: The issue occurs only on ARM (Ventura and Monterey) not on Intel.
XPC simply doesn't work after upgrading system extension on ARM.
I tried to kill sysextd, nesessionmanager and other processes. Basically I'm trying to kill a process that manages XPC connections and info about processes and their signature validation (maybe it's somewhere deep in kernel and it's not possible to resolve it by this hack).
It is possible that when trying to connect to XPC while starting our services in posinstall scirpt, installd hasn't quite yet completed and perhaps OS considers bundle signature not valid yet.
Workaround is rebooting the machine, but we try to avoid that as much as possible.
After reboot XPC works fine with upgraded system extension.
Topic:
App & System Services
SubTopic:
Networking
Tags: