前言,网络状态的改变是必虑的环境,有弱网的工具会更加有助开发
一、真机弱网
前提:真机连接 Xcode build
一下
设置 -> Developer -> Network Link Conditioner -> Very Bad Network
Developer
Network Link Conditioner
Very Bad Network
二、模拟器弱网测试
下载工具:
https://developer.apple.com/download/more/
下载Additional Tools for Xcode
打开 Additional Tools for Xcode 安装 Network Link Conditioner
image.png image.png image.png传送门:
勇敢的呆喵:https://www.jianshu.com/p/b52448f56c96
鞋子特大号丶:https://www.jianshu.com/p/fb017bef35c9
网友评论