App因应用程序不支持IPV6协议而被拒绝

时间:2017-04-27 17:07:52

标签: ios swift google-maps

我的应用程序编码为swift 3,Xcode 8.2.1,部署目标10.昨天我提交了我的应用程序的第一个版本。不幸的是,它被拒绝了;(

我使用第三个广告连拍

Using AFNetworking (3.1.0)
Using GoogleMaps (2.2.0)
Using ReachabilitySwift (3)

Apple团队表示该应用程序无法在iPad上使用Wi-Fi连接到IPv6网络,应用程序无法确定当前位置。

任何人都可以帮助我吗?我该怎么做才能支持iPV 6.

1 个答案:

答案 0 :(得分:0)

问题在于你ReachabilitySwift。您必须使用Apple的Reachability类:

https://developer.apple.com/library/content/samplecode/Reachability/Listings/Reachability_Reachability_h.html

在Swift项目中创建Objective-C类时,Xcode建议创建一个Bridging Header Class以在Swift中使用Objective-C。

我经常遇到这个问题,我强烈建议您始终直接使用Apple的Reachability课程而不是来自互联网的其他开源项目。