被 Apple Mac Store 拒绝,因为使用了 NEVPNManager 的 Xamarin 实现

Rejected from Apple Mac Store because using Xamarin implementation of NEVPNManager

今天我们被 Apple Mac Store 拒绝了,因为我们在 Mac 应用程序中使用了 NEVPNManager 的 Xamarin 实现。

Your app includes VPN services but does not use the NEVPNManager API to deliver these services.

以前我们在 objective c 库(已绑定)中有 VPN 功能,我们被接受了。现在我们删除了 objective c 库并使用了 xamarin 实现,但我们被拒绝了。

苹果为什么拒绝我们? @Xamarin 您在实施中使用 NEVPNManager 吗?

您可以在 Xamarin 论坛上找到答案: https://forums.xamarin.com/discussion/comment/328214?

感谢@Chris Hamons 的帮助!

解决方案:

在项目选项 -> 构建 -> Mac 构建中将 --link_flags="-framework NetworkExtension" 添加到附加 MMP 参数中修复了该问题。

理论上应该自动添加这些。似乎是一个潜在的错误。