React native IOS IPv6支持

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/cexo425/article/details/62221846

我的app在apple store被下架,下架的原因如下

Guideline 2.1 - Performance
We discovered one or more bugs in your app when reviewed on iPhone running iOS 10.3.1 on Wi-Fi connected to an IPv6 network.
Specifically, an error message was displayed when we attempted to log in. When we tapped “Ok” to close the error message, the app loaded indefinitely.
Please see attached screenshots for details.

我们首先需要测试IPv6的环境,以下是国外的一遍文章http://www.brianjcoleman.com/tutorial-how-to-test-your-app-for-ipv6-compatibility/

允许MAC电脑进行IPV6测试

OS X EL Capitan有一个隐藏的功能是允许通过网络分享来提供IPv6的地址,这个功能被添加到El Capitan是确保开发者的APP 可以在IPv6下运行, 它使用NAT64, 在IPv4的主机与模拟器的IPv6进行通信。
1. 确保你的MAC连接到网络, 但不是通过WI-FI连接
2. 打开System设置
3. 按下Option键,并点击Sharing, 并且保持Option键不松开
4. 在共享服务里,选择网络共享
5. 释放Option键
6. 在右侧选择Create NAT64 network
7. 选择一个你的网络连接, 比如Thunderbolt Ethernet(雷电的网卡)
8. 选择共享的方式WI-FI
9. 设置wi-fi名和密码
10. 勾选左侧的Internet sharing
11. 会弹出确认框,点击start

在实际的测试中,你要确保测试的机器,只能连接IPv6的网络,关闭你手要的4G网络服务

猜你喜欢

转载自blog.csdn.net/cexo425/article/details/62221846