I am trying to develop a system extension. During development process I often like to create a version, debug it, fix some issue, and then try a new version.
This is a normal flow for development, but it doesn't seem to work for me when developing a system extension.
It seems like removing a system extension using the systemextensionsctl
only registers it for removal after the next restart, which means I need to restart my machine for every code change.
it also seems like calling
OSSystemExtensionRequest.activationRequest(forExtensionWithIdentifier: queue: )
with the new extension version will not replace the running one despite the
_ request: OSSystemExtensionRequest,
actionForReplacingExtension existing: OSSystemExtensionProperties,
withExtension ext: OSSystemExtensionProperties
)
being called on the OSSystemExtensionRequestDelegate
So is there another way to iterate on app extension versions?