I made the following configuration based on the information in the forum?
Container app id includes Network Extensions, Personal VPN, System Extension
Extension Tunnel id id includes Network Extensions, Personal VPN
The container app entitlements are as follows
Code Block <dict> |
<key>com.apple.developer.networking.networkextension</key> |
<array> |
<string>packet-tunnel-provider-systemextension</string> |
</array> |
<key>com.apple.developer.networking.vpn.api</key> |
<array> |
<string>allow-vpn</string> |
</array> |
<key>com.apple.developer.system-extension.install</key> |
<true/> |
<key>com.apple.security.app-sandbox</key> |
<true/> |
<key>com.apple.security.application-groups</key> |
<array> |
<string></string> |
</array> |
<key>com.apple.security.device.usb</key> |
<true/> |
<key>com.apple.security.network.client</key> |
<true/> |
<key>com.apple.security.network.server</key> |
<true/> |
<key>keychain-access-groups</key> |
<array> |
<string>$(AppIdentifierPrefix)</string> |
</array> |
</dict> |
</plist> |
4. Extension Tunnel id entitlements are as follows
Code Block <dict> |
<key>com.apple.developer.networking.networkextension</key> |
<array> |
<string>packet-tunnel-provider-systemextension</string> |
</array> |
<key>com.apple.developer.networking.vpn.api</key> |
<array> |
<string>allow-vpn</string> |
</array> |
<key>com.apple.security.app-sandbox</key> |
<true/> |
<key>com.apple.security.application-groups</key> |
<array> |
<string></string> |
</array> |
<key>com.apple.security.device.usb</key> |
<true/> |
<key>com.apple.security.network.client</key> |
<true/> |
<key>com.apple.security.network.server</key> |
<true/> |
<key>keychain-access-groups</key> |
<array> |
<string>$(AppIdentifierPrefix)</string> |
</array> |
</dict> |
5、 I use Developer ID signd app and uploaded my app to notarise server through Xcode
6. The APP still does not work properly
console.app show:
Code Block nw_path_evaluator_start [0D5BB27E-A47B-485A-9846-E410803D5E3D Hostname#d91ef292:0 generic, indefinite] |
path: satisfied (Path is satisfied), interface: en0, ipv4, dns |
nw_path_evaluator_start [21C51CA5-8228-4177-A53E-2DC68D3C0C54 IPv4#1694037f:0 generic, indefinite] |
path: satisfied (Path is satisfied), interface: en0, ipv4, dns |
Last disconnect error for WSTVpn changed from "none" to "因为发生了内部错误,VPN会话失败。" |
Current bundle (/Applications/SecPortalMac.app) does not have a SystemExtensions directory |
Saving configuration WSTVpn with existing signature {length = 20, bytes = 0x9c9fa6cc5340118337e2221ca19dbd46dc2202f9} |
Are there any errors or omissions in the above steps?