The day-to-day development is OK for me.
I read the Filtering Network Traffic sample code , I found the following code to install System Extension:
OSSystemExtensionRequest *req = [OSSystemExtensionRequest activationRequestForExtension:@"org.uc.UCTunnel.UCPacketTunnel" queue:dispatch_get_main_queue()];
req.delegate = (id<OSSystemExtensionRequestDelegate>)self;
[[OSSystemExtensionManager sharedManager] submitRequest:req];
And need the following entitlment:
<key>com.apple.developer.system-extension.install</key>
<true/>
It works !
Thank you for your help~~
Topic:
App & System Services
SubTopic:
Networking
Tags: