@DTS Engineer
Thank you. I read the documentation provided by Apple engineers.
I was able to create the installer successfully and launch the application.
However, when I try to connect to the VPN, I get the following error:
default 16:53:58.419606+0900 Runetale Saving configuration Runetale with existing signature (null)
error 16:53:58.420440+0900 Runetale Failed to save configuration Runetale: Error Domain=NEConfigurationErrorDomain Code=10 "permission denied" UserInfo={NSLocalizedDescription=permission denied}
error 16:53:58.420474+0900 Runetale Failed to save configuration: Error Domain=NEVPNErrorDomain Code=5 "permission denied" UserInfo={NSLocalizedDescription=permission denied}
error 16:53:58.420407+0900 nehelper Runetale Failed to obtain authorization right for 3: no authorization provided
Is there any possible reason for this?
The entitlements look like this:
App entitlements
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.application-identifier</key>
<string>myteamid.com.runetale.desktop</string>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>packet-tunnel-provider</string>
</array>
<key>com.apple.developer.system-extension.install</key>
<true/>
<key>com.apple.developer.team-identifier</key>
<string>myteamid</string>
<key>com.apple.security.app-sandbox</key>
<false/>
<key>com.apple.security.application-groups</key>
<array>
<string>myteamid.com.runetale.desktop</string>
</array>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
</dict>
</plist>
NetworkExtension entitlements
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.application-identifier</key>
<string>VH5RTVGP6D.com.runetale.desktop.PacketTunnel</string>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>packet-tunnel-provider-systemextension</string>
</array>
<key>com.apple.developer.team-identifier</key>
<string>VH5RTVGP6D</string>
<key>com.apple.security.app-sandbox</key>
<false/>
<key>com.apple.security.application-groups</key>
<array>
<string>VH5RTVGP6D.com.runetale.desktop</string>
</array>
</dict>
</plist>
And the automation script I'm using looks like this:
Due to character limit, I will paste it in the next comment. Sorry.
What I am careful about
Do not use codesign force
Include -systemextension in entitlements
Sign other frameworks, resources, etc.
Copy the provisionprofile created from the Developer Account
Since I am able to install and start the package installer the way it is currently made, I think the cause might be that the provisionprofile isn't set up properly.
any idea?