问题
I have code my project using SOAP methods in NSURLConnection.Recently new version update reject it cause of ipV6 issue for ios9+
Now i check that for supporting ipV6 you need to convert code to standard networking APIs like NSURLSession and CFNetwork APIs provided by apple.
Is there alternative without converting my more then 350+ api , it will work with ipV6 .
回答1:
Now that NSURLConnection has been deprecated it's just a question of time before your code stop working with new iOS updates. So whatever, you'd better plan using newer APIs, sooner or later.
NSURLConnection should still work with IPv6 tho. Are you sure it's not because you have been using an IP literal instead of domain name ? Ex: using IP like 123.123.23.3 is forbidden.
Also; please take a look at the transition guide.
It should hint what triggered apple rejection
来源:https://stackoverflow.com/questions/38138808/nsurlconnection-method-use-with-ipv6