I'm converting an iOS/iPad app to mac Catalyst. This app has a VPN feature built-in. It uses NEVPNManager to configure and start a VPN connection. Everything works ok on iOS, but once I try to connect with mac version the connection isn't established.
I found some strange logs in the console. One keychain error:
One kernel/sandbox error:
And one NESMIKEv2VPNSession failed attempt to initialise a tunnel:
I made sure that everything in the app capabilities matches those in the provisioning profile.
Following capabilities are enabled:
Is it even possible to create a VPN connection using NEVPNManager and NEVPNProtocolIKEv2 with mac Catalyst?
Complete logs are in the attachment.
I found some strange logs in the console. One keychain error:
Code Block language App (null): Failed to copy content, SecKeychainItemCopyContent returned The contents of this item cannot be retrieved. App (null): SecKeychainItemFreeContent returned The contents of this item cannot be retrieved.
One kernel/sandbox error:
Code Block language Sandbox: App(30269) deny(1) mach-lookup com.apple.networking.captivenetworksupport
And one NESMIKEv2VPNSession failed attempt to initialise a tunnel:
Code Block language NESMIKEv2VPNSession[Primary Tunnel:App Wi-Fi Protection:5713FD9D-3998-4273-9C8B-6B5F82D86696:(null)] in state NESMVPNSessionStateStarting: plugin NEVPNTunnelPlugin(com.apple.NetworkExtension.IKEv2Provider[1462]) disconnected with reason Plugin failed
I made sure that everything in the app capabilities matches those in the provisioning profile.
Following capabilities are enabled:
Is there a way how to get rid of errors mentioned above?Keychain Sharing
Personal VPN
Network Extension
App Sandbox
Is it even possible to create a VPN connection using NEVPNManager and NEVPNProtocolIKEv2 with mac Catalyst?
Complete logs are in the attachment.