'Permission denied' error on Network Extension for ad hoc/appstore builds

It used to work before.

In logs there's following:

<Notice>: SandboxViolation: VpnExample(4774) deny(1) file-read-metadata /private/var/preferences/com.apple.networkextension.plist

VpnExample(NetworkExtension)[4774] <Error>: Failed to load configurations: Error Domain=NEConfigurationErrorDomain Code=10 "permission denied" UserInfo={NSLocalizedDescription=permission denied}

VpnExample(NetworkExtension)[4774] <Error>: Failed to load the configuration: Error Domain=NEVPNErrorDomain Code=5 "permission denied" UserInfo={NSLocalizedDescription=permission denied}


When .ipa signed with development profile and launched with xcode, everything works. This app uses a dynamic framework for VPN functionality.

Why it says 'permission denied'?


Thanks

Replies

What platform are you working on?

It’s likely that this problem is being caused by entitlement issues. I have some general advice for debugging problems like that here.

Share and Enjoy

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

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