network extension did not call

We are building custom tunnel provider on iphone,but it did not call


NETunnelProviderSession *session = (NETunnelProviderSession*) manager.connection;


NSDictionary *options = @{@"serverAddress": @"114.67.29.206"};


NSError *err;


[session startTunnelWithOptions:options andReturnError:&err];

Answered by DTS Engineer in 162773022

Are these the

.entitlements
file or the output from
codesign
? They look like the former (because they’re missing a bunch of keys that I’d normally expect to see in the output from codesign), which is not good because you really need to check the entitlements of the built binary. Take another look at Debugging Entitlement Issues.

It’d also be helpful if you answered the other questions from my previous post.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

First up, I moved your thread to Core OS > Networking because you’re more likely to get the attention of folks with Network Extension experience there.

Second, you wrote:

We are building custom tunnel provider on iphone,but it did not call

There’s really not enough information to go on here. Some questions:

  • What platform are you working on?

  • When you try to start your tunnel, do you see any relevant diagnostics in the system log?

  • Are you sure your entitlements are correct? You should run through the steps in Debugging Entitlement Issues to be sure.

  • If you do the same thing with the SimpleTunnel sample code, does it work there?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I'm pretty sure I've got the right to expand the network , and I use the generated Provisioning Profiles in Apple's project is not a problem , but for my own projects , but also how to start the network expansion. I do not know why?


1.entitlements

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-/

<plist version="1.0">

<dict>

<key>com.apple.developer.networking.networkextension</key>

<array>

<string>packet-tunnel-provider</string>

</array>

<key>com.apple.security.application-groups</key>

<array>

<string>group.com.xiongmaovpn.youqu.HideXiongMao</string>

</array>

<key>com.apple.developer.networking.vpn.api</key>

<array>

<string>allow-vpn</string>

</array>

<key>get-task-allow</key>

<true/>

</dict>

</plist>

2.entitlements


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-/

<plist version="1.0">

<dict>

<key>com.apple.developer.networking.networkextension</key>

<array>

<string>packet-tunnel-provider</string>

</array>

<key>com.apple.security.application-groups</key>

<array>

<string>group.com.xiongmaovpn.youqu.HideXiongMao</string>

</array>

</dict>

</plist>

I do not know if I have a configuration error

Accepted Answer

Are these the

.entitlements
file or the output from
codesign
? They look like the former (because they’re missing a bunch of keys that I’d normally expect to see in the output from codesign), which is not good because you really need to check the entitlements of the built binary. Take another look at Debugging Entitlement Issues.

It’d also be helpful if you answered the other questions from my previous post.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
network extension did not call
 
 
Q