简体   繁体   English

由于ipv6网络问题,我的ios应用程序被拒绝了

[英]My ios app got rejected due to ipv6 network issue

My app got rejected with message from Apple as "Your app crashes on iPad running iOS 10.0.2 connected to an IPv6 network.” and also did not get anything from the crash log attached. Please reply whoever resolved this issue. 我的应用程序被Apple拒绝了,因为“你的应用程序在连接到IPv6网络的运行iOS 10.0.2的iPad上崩溃了。”并且没有从附加的崩溃日志中得到任何信息。请回复解决此问题的人。

Actually I am getting server not found error whenever trying to access the api server from ipv6 only network. 实际上,每当尝试从ipv6网络访问api服务器时,我都会收到服务器未找到错误。 My api server only supports ipv4 network. 我的api服务器只支持ipv4网络。 Do I need to change anything in api server? 我需要在api服务器中更改任何内容吗? Can anyone post any sample code to access api server using NSUrlConnection object that support the ipv6 only network? 任何人都可以使用支持ipv6唯一网络的NSUrlConnection对象发布任何示例代码来访问api服务器吗?

如果您正在使用AFNetworking库或Apple的Reachability类,则更新您的课程,而不是解决问题。

Don't get confused by that message. 不要被这条消息搞糊涂。 I got that too but the problem is not necessarily caused by the IPv6 Network. 我也得到了,但问题不一定是由IPv6网络引起的。 My feeling is they just write this always even if the error is something else. 我的感觉是他们只是写这个,即使错误是别的。 I had this with an app myself last week but the error was just a completely different reason. 上周我自己有一个应用程序,但错误只是一个完全不同的原因。 Maybe you just look into your code where the problem occurred. 也许您只是查看问题发生的代码。 They probably wrote at which point in your app it crashed. 他们可能会在你的应用程序中写下它崩溃了。

应用程序现已获得苹果审核小组的批准,目标版本增加到9.2之前为8.1。

A lot of server environments have not started supporting IPV6 (Think Azure in some configurations). 许多服务器环境尚未开始支持IPV6(在某些配置中使用Think Azure)。 This causes the scenario where the api being used by the app are not useable. 这会导致应用程序使用的api无法使用的情况。 Do handle such scenarios in your code. 在代码中处理这样的场景。

Apple's own reachability class and some other third party frameworks use low level apis/sockets for their own purpose. Apple自己的可访问性类和其他一些第三方框架使用低级api / socket作为自己的目的。 These are the problematic areas. 这些是有问题的领域。

Most of the High level code using NSURLConnection is ok, but if you are using any third party libraries or older versions of AFNetworking, you'll need to check if they are using any sockets. 大多数使用NSURLConnection的高级代码都可以,但如果您使用的是任何第三方库或旧版本的AFNetworking,则需要检查它们是否使用任何套接字。 If they are, then look for options/upgrades. 如果是,那么寻找选项/升级。

We faced the same issue recently, ended up with lots of fixes to server and third party libs in the app. 我们最近遇到了同样的问题,最终在应用程序中对服务器和第三方库进行了大量修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM