I have a system network extension that is installed by my app.
When I update my app I also update me system extension by returning ReplacementAction.replace
at the actionForReplacingExtension
delegate.
When the new extension starts, I created a new NSXPCListener with the same mach service name, but the app can’t register to it.
I updated from MyExtension version 1 to MyExtension version 2.
On the Console logs I see:
launchd: [system:] Service "NetworkExtension.com.MyExtension.2" tried to register for endpoint "machServiceName" already registered by owner: NetworkExtension.MyExtension.1
launchd: [system:] failed activation: name = machServiceName, flags = 0x0, requestor = MyApp[38340], error = 1: Operation not permitted