I'm researching to develop a VPN application on tvOS 17.0, but even if I set the dev target version
to 17.0, it still prompts me that the API is not available.
'NEPacketTunnelProvider' is only available in tvOS 17.
0 or newer
I have 2 xcodes installed on my computer, I tried switching to sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer,
but it still doesn't work. Is there anything else I need to set?
@eskimo We managed to solve this issue. Looks like a bug on xcode 15+
The simplest solution is to change the productType of your Network Extension target from com.apple.product-type.tv-app-extension to com.apple.product-type.app-extension.
Details can be found here: https://medium.com/@munibsiddiqui/fix-nsextensionprincipalclass-packettunnelprovider-must-implement-at-least-one-public-55963b76c9cd