XPC doesn't work with network extension on app upgrade

Our app has a network extension (as I've mentioned lots 😄). We do an upgrade by downloading the new package, stopping & removing all of our components except for the network extension, and then installing the new package, which then loads a LaunchAgent causing the containing app to run. (The only difference between a new install and upgrade is the old extension is left running, but not having anything to tell it what to do, just logs and continues.)

On some (but not all) upgrades... nothing ends up able to communicate via XPC with the Network Extension. My simplest cli program to talk to it gets

Could not create proxy: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named blah was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named bla was invalidated: failed at lookup with error 3 - No such process.}
Could not communicate with blah

Restarting the extension by doing a kill -9 doesn't fix it; neither does restarting the control daemon. The only solution we've come across so far is rebooting.

I filed FB11086599 about this, but has anyone thoughts about this?

Answered by DTS Engineer in 886536022

This has come up a bunch of times and I think this thread is probably the best one to treat as a ‘lead’ thread. I plan to post an update to that thread soon [1].

Share and Enjoy

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

[1] Ideally in the next few hours but I’m travelling right now, meaning my schedule is much harder to predict, so it might be a few days |-:

@kithrup

Were you ever able to fix this, or did you ever get a response on your feedback ticket?

This came up again here , and that’s where I recommend that we continue this discussion.

Share and Enjoy

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

NB: it appears to be a different issue.

Did anyone ever get an actual solution to this problem? As it appears to be happening for us maybe 8 out of 10 updates. We use sparkle to update and occasionally The XPC will break post upgrade of the extension. Only thing that sorts it is a restart. Obviously deactivating and sending a new activation request for the extension is not viable UX.

This has come up a bunch of times and I think this thread is probably the best one to treat as a ‘lead’ thread. I plan to post an update to that thread soon [1].

Share and Enjoy

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

[1] Ideally in the next few hours but I’m travelling right now, meaning my schedule is much harder to predict, so it might be a few days |-:

XPC doesn't work with network extension on app upgrade
 
 
Q