您的位置:首页 > Web前端 > React

React native IOS IPv6支持

2017-06-21 09:56 357 查看
我的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网络服务
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios ipv6 react-native