I can develop a PacketTunnelProvider on Mac with xcode. I work with my self codesign.
But when I sign it with Developer ID after read https://developer.apple.com/forums/thread/737894 , it still fail when I turn on the vpn .
OK, that’s definitely a sysex. Thanks for confirming.
Given that, you should be able to export it for direct distribution with Developer ID signing. You’ll have to carefully work through the steps in Exporting a Developer ID Network Extension. Make sure that:
- The code is signed with the Developer ID variants of the
com.apple.developer.networking.networkextension
entitlement values. - That entitlement claim is authorised by a Developer ID provisioning profile.
Make sure to check both the container app and the embedded sysex.
I also recommend that you add a ‘first light’ log point to your sysex so you can see whether it’s code runs at all. See Debugging a Network Extension Provider for more about that.
And if you don’t get that log point, make sure to check for crash reports.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"