【问题标题】:Backwards compatibility on iOS 8 with an app that uses NETunnelProviderManager在 iOS 8 上向后兼容使用 NETunnelProviderManager 的应用程序
【发布时间】:2016-07-07 22:32:43
【问题描述】:

我有一个应用程序目前在 iOS 8 上运行良好,我们正在通过 NETunnelProviderManager 添加对设备级 VPN 的支持。带有 VPN 扩展的应用程序在 iOS 9 和 10 上运行良好,但现在不再安装在 iOS 8 中,并出现以下错误:

[Error :appex bundle at /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.tdt5DO/extracted/MYAPP.app/PlugIns/NetworkExtension.appex with id myapp.ID specifies a value (com.apple.networkextension.packet-tunnel) for the NSExtensionPointIdentifier key in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point] 

我计划在运行时检查 iOS 版本,只是不调用这些 API,但由于这次失败,应用程序甚至无法进入运行时。

无论如何我可以让它在运行时安装和处理它吗?为 iOS 8 单独制作一个应用程序对我来说是不可行的。

虽然我的应用使用 VPN 扩展程序,但它可以做一些不带它的事情,所以我希望继续支持 iOS 8,至少在一段时间内。

【问题讨论】:

    标签: ios ios8 vpn networkextension


    【解决方案1】:

    解决方案只是为我的插件项目选择正确的 iOS 目标,这样它就不会安装在不支持它的操作系统上。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-12
      • 1970-01-01
      • 1970-01-01
      • 2012-07-08
      • 2015-05-19
      • 1970-01-01
      • 2014-07-26
      • 1970-01-01
      相关资源
      最近更新 更多