Solution for rejecting Apple apps due to IPv6 network
Checking Internet availability for IPv6 does not work. Always shows a lack of network. When I use this code, Apple approved my application within 24 hours. THANKS
Change the following line in the AFNetworking code in the AFNetworkReachabilityManager class
EDIT AF_INET TO AF_INET6;
+ (instancetype)sharedManager { static AFNetworkReachabilityManager *_sharedManager = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ struct sockaddr_in address; bzero(&address, sizeof(address)); address.sin_len = sizeof(address); address.sin_family = AF_INET6;
EDIT:
$ grep -nr 'AF_INET*' . ./Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m:122: address.sin_family = AF_INET; replace AF_INET; to AF_INET6;
Maninderjit Singh Jul 05 '16 at 6:13 2016-07-05 06:13
source share