问题
have apps, built 2015 and 2014. How can I test them for IPv6? If my apps doesn't support IPv6, what should I do?
My apps are using AFNetworking and Alamofire. I'm connecting mostly to domains ( Ex. api.example.com/v1/...). Only 1 app use IP: (ex: 12.12.12.12:3000/api/v1/...).
回答1:
This solution only works if you have an ethernet connection.
For creating an iPV6 NAT64 wifi network, follow these steps
Step 1 : Open system preferences
Step 2 : Open Sharing
Step 3 : Click on internet sharing
Step 4 : Click Wifi in the ports while pressing option(ALT) key. A Create NAT64 Network checkbox will be displayed on the bottom after that. It is important to press ALT while selecting WIFI for displaying the checkbox
Step 5 : check Create NAT64 Network checkbox.
Now test the application in the created network.
回答2:
The following link from Apple outlines the requirements for transition to IPv6 support so I suggest reading it carefully. Apple provides guidelines to insure that your app is IPv6 compatible including which API's should and should not be used, not hard-coding IP addresses, etc. They even detail how to setup a local Mac-based IPv6 DNS64/NAT64 network to test against.
回答3:
I've found this walkthrough in how to setup your Mac for Internet Sharing to test IPv6 from Brian Coleman to be quite helpful.
http://www.brianjcoleman.com/tutorial-how-to-test-your-app-for-ipv6-compatibility/
It has several screenshots, step-by-step instructions to guide you through the process. I hope this helps!
回答4:
Holding command + option while clicking on the Sharing preference pane will add a "Create NAT64 Network" option for Internet Sharing. Enable that and devices connected through your shared connection will be in a NAT64 connection.
来源:https://stackoverflow.com/questions/37969860/how-to-test-ios-app-on-supporting-ipv6-apple-rejected-app-as-it-is-not-ipv6-com