前端/客户端 开发领域,模拟高延迟网络环境能帮助我们强壮程序,提高不少用户体验。
🔗工具下载地址:https://developer.apple.com/download/all/?q=Additional%20Tools%20for%20Xcode
在macOS系统中,曾经有一个叫Network Link Conditioner的工具

但是当升级到macOS 11+之后就不见了,原因是因为苹果公司将这个工具聚合到了🔗Additional Tools for Xcode工具下面。

选择下载与你本地Xcode版本对应的Additional Tools for Xcode工具版本。
下载完成后打开.dmg
文件,找到/Hardware
文件夹并打开

里面就有一个名为
Network Link Conditioner.prefPane
的文件,就是我们要更新的模拟本地高延迟环境的工具,双击安装。
与老版本冲突
如果遇到【 您无法安装“Network Link Conditioner”偏好设置 】问题

进入到/Library/PreferencePanes
,注意不是~/Library/PreferencePanes
!
删除老版本的Network Link Conditioner.prefPane
文件,再重新安装,记得重启“系统偏好设置”
网友评论