Perhaps this could help to fix XPC invalidation- add following to postinstall script:
disable network filter
stop network extension
spctl -a -vv "${APP_PATH}"
spctl -a -vv "/Applications/${PRODUCT_NAME}.app/Contents/Helpers/${MANAGER}.app"
spctl -a -vv "/Applications/${PRODUCT_NAME}.app/Contents/Helpers/${MANAGER}.app/Contents/Library/SystemExtensions/com.company.feature.dev.systemextension"
upgrade system extension
enable network filter
connect XPC client
But it is possible that simply using
sleep 30 before upgrading system extension would accomplish the same :-)
Topic:
App & System Services
SubTopic:
Networking
Tags: