Recently, Apple issued a statement: Since June 1 this year, all applications submitted to the Apple App Store must be compatible with the latest Internet Protocol--IPV6-ONLY standards for hardware identification and network routing.
So the question is, does the current app support IPv6? , which need to support IPv6?
One: Test whether your app currently supports IPv6 and will not be able to submit to the store after June 1 if not supported
Here's a copy of Wwdc2015 's video about IPv6 https://developer.apple.com/videos/play/wwdc2015/719/
Test by sharing a IPv6 network with your Mac
First your Mac needs to have two network card, I test with MBP, using wired Internet, using WiFi network card to share the network
1. Open System Preferences----hold down the OPTION key------click, share
2. Also hold down the OPTION key----tick the left side of the Internet share----the right source---Select Local Ethernet-----Share port to select WiFi; There is a NAT64 network, options, check on;
Can create a IPv6 network, the test machine to connect to the network, testing the app's communication situation;
Second: Whether the current app needs to support IPv6
Described on Apple's documentation;
That is to say, using the Advanced network programming API provided by Apple, do not need processing; such as: Nsurlsession,cfnetwork,nsurlconnection, WebKit, etc.
But the need to use lower sockets to support IPv6;
And the use of the following interfaces are required
inet_addr()
inet_aton()
inet_lnaof()
inet_makeaddr()
inet_netof()
inet_network()
inet_ntoa()
inet_ntoa_r()
bindresvport()
getipv4sourcefilter()
setipv4sourcefilter()
Reference: https://developer.apple.com/library/mac/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/ understandingandpreparingfortheipv6transition/understandingandpreparingfortheipv6transition.html#//apple_ref/ Doc/uid/tp40010220-ch213-sw1
iOS app support ipv6-only