# Lagsmith：Mac 上按 App 限速与模拟弱网

> Lagsmith 在 Mac 上一次只为一个 App 限速或模拟网络故障，包括 iOS 模拟器 App。按 App 生效的 Network Link Conditioner 替代品。

Source: https://lagsmith.com/zh

面向 iOS 和 macOS 开发者的网络测试工具

# 只作用于单个 App 的 Network Link Conditioner

Network Link Conditioner 会拖慢你的整台 Mac：Xcode、Slack，还有正在帮你写代码的智能体。Lagsmith 只让你选中的 App 跑在 3G 上，甚至可以只限一台模拟器上的一个 App。

[下载 Mac 版](https://downloads.lagsmith.com/Lagsmith.dmg) [看看有何不同](https://lagsmith.com/zh/network-link-conditioner-alternative)

**免费下载。**14 天 Pro 试用，无需账户。macOS 13 Ventura 或更高版本。

*Lagsmith 窗口示意图：Mac App Waypoint 设为 3G 并正在监视，下方是它的连接列表。其他 Mac App 和模拟器 App 均为关闭状态。*

## 你的智能体可以在 3G 下测试，自己却不会跟着变慢

Lagsmith 内置 MCP 服务器。让 Claude Code 在糟糕的网络下测试结账流程，它就会只把你的 App 切到 3G，运行 UI 测试，并读取失败的请求。

[设置 MCP 服务器](https://lagsmith.com/zh/docs/mcp)

```
> 在 3G 下测试结账流程，让支付 API 返回 503。

⏺ lagsmith - set_network (MCP)(app: "com.pantryhq.Pantry", preset: "3G")

  ⎿  {"ok": true, "preset": "3G", "conditions": {"down": 780, "latency": 200}}

⏺ lagsmith - fail_endpoint (MCP)(pattern: "api.pantryhq.app/v1/payments", kind: "status", value: 503)

  ⎿  {"ok": true}

⏺ Bash(xcodebuild test -scheme PantryUITests -only-testing:PantryUITests/CheckoutTests)

  ⎿  ✓ testCartLoads (4.8 s)
     ✗ testPlaceOrder (30.0 s): Failed to find "Order confirmed"

⏺ 找到了：支付失败时，结账界面会一直转圈，因为没有错误状态。要我加一个带“重试”按钮的错误状态，然后重新运行测试吗？
```

使用 Lagsmith MCP 服务器的 Claude Code 会话示意。你的智能体保持全速，只有 Pantry 处于 3G。

**Pantry** iPhone 17 Pro · iOS 26

Very Bad Network 

1.  **POST**200 OK1.4 s /v1/cart
2.  **GET**200 OK2.8 s /v1/recipes?page=2
3.  **POST**已超时30 s /v1/payments
4.  **GET**200 OK3.1 s /v1/images/7f3a…c91.jpg
5.  **GET**304640 ms /v1/user/profile
6.  **POST**2021.9 s /v1/events
7.  **GET**200 OK912 ms /v1/pantry/items

46 个请求 · 1 个失败 · 点按以检查

## 模拟器旁边的小窗口

迷你监视器浮在你正在测试的 App 旁边，实时列出它的请求，让你一边点按一边看到超时的发生。点按它即可打开检查器。

[请求监控](https://lagsmith.com/zh/docs/monitoring)

## 看清每个请求，连图片都能预览

模拟器 App 发出的每个请求的标头、正文和耗时一目了然，无需安装证书。JSON 以树形展开，鼠标悬停在图片 URL 上即可显示图片。

**Pantry**iOS 模拟器 · iPhone 17 Pro

路径方法状态时间大小

/v1/sessionPOST 200 OK 1.3 s412 字节

/v1/user/profileGET 304 Not Modified 640 ms—

/v1/pantry/itemsGET 200 OK 912 ms8 KB

/v1/recipes?page=2GET 200 OK 2.8 s25 KB

/r/412.jpgGET 200 OK 3.1 s64 KB

/r/387.jpgGET 200 OK 2.6 s58 KB

/v1/cartPOST 200 OK 1.4 s1 KB

/v1/paymentsPOST 已超时 30 s—

/v1/eventsPOST 202 Accepted 1.9 s—

/v1/recommendationsGET 200 OK 2.2 s6 KB

/r/355.jpgGET 200 OK 2.9 s61 KB

GET https://api.pantryhq.app/v1/recipes?page=2 200 OK

2.8 s · 25 KB · 上午11:46:36

键值

_⌄_recipes \[ 24 项 \]

_⌄_0 { 7 个键 }

id 412

title "Lemon orzo with peas"

minutes 25

servings 4

imageUrl "https://cdn.pantryhq.app/r/412.jpg"

_›_tags \[ 3 项 \]

saved true

_›_1 { 7 个键 }

_›_2 { 7 个键 }

_›_3 { 7 个键 }

_›_4 { 7 个键 }

_›_5 { 7 个键 }

_›_6 { 7 个键 }

nextPage "/v1/recipes?page=3"

## 它还能做什么

[为单个 App 限速](https://lagsmith.com/zh/throttle-ios-simulator)

3G、Edge、LTE，或自定带宽、延迟和丢包率。

[为单个 App 开启飞行模式](https://lagsmith.com/zh/simulate-airplane-mode-ios-simulator)

还有超时、拒绝连接和断开连接。

[让单个端点失败或模拟它](https://lagsmith.com/zh/mock-api-ios-simulator)

让 /v1/payments 返回 503，API 的其余部分不受影响。

[自动化](https://lagsmith.com/zh/docs/automation)

通过 XCUITest、命令行或 lagsmith:// 链接设置网络。

[MCP 服务器](https://lagsmith.com/zh/ai-agents-network-testing)

适用于 Claude Code、Cursor、Codex 以及其他支持 MCP 的工具。

[HAR 导出](https://lagsmith.com/zh/docs/monitoring)

把出问题的会话记录交给负责后端的同事。

## 与 Network Link Conditioner 对比

|  | Apple 的 Network Link Conditioner | Lagsmith |
| --- | --- | --- |
| 限速范围 | 整台 Mac | 只限你选的 App |
| 你的 AI 智能体 | 也会变慢，而且无法控制它 | 保持全速，并通过 MCP 操控 Lagsmith |
| iOS 模拟器 | 所有 App 一起变慢 | 单个 App，甚至单台设备 |
| 故障 | 只有丢包 | 飞行模式、超时、断开连接和拒绝连接 |
| 让单个端点失败或模拟它 | ✕ | ✓ |
| 查看请求 | ✕ | ✓ |
| UI 测试和命令行 | ✕ | ✓ |

[阅读完整对比](https://lagsmith.com/zh/network-link-conditioner-alternative)

## 价格

### 免费版

-   监视任意 App
-   查看它最近的 50 个请求和连接
-   用 Edge 预设为它限速

### Pro

$39 一次性

一次性购买。含一年更新，你的版本可以永久使用。

-   按 App 使用所有预设、自定预设和配置文件
-   飞行模式和故障模式
-   让端点失败和模拟端点
-   UI 测试、命令行和面向 AI 智能体的 MCP
-   无限历史记录、搜索过滤器、HAR 导出、迷你监视器

[查看价格](https://lagsmith.com/zh/pricing)

## 常见问题

### Lagsmith 和 Apple 的 Network Link Conditioner 有什么区别？

Network Link Conditioner 会拖慢整台 Mac。Lagsmith 只为你选择的 App 限速，包括 iOS 模拟器中的单个 App，还提供故障模式、请求监控和自动化。[查看完整对比](https://lagsmith.com/zh/network-link-conditioner-alternative)。

### 它支持 iOS 模拟器吗？

支持。在已启动的模拟器中选择一个 App，Lagsmith 就只会为这个 App 限速或制造故障，甚至可以只作用于一台模拟器设备，而另一台照常运行。

### 需要安装证书或更改代理设置吗？

不需要。Lagsmith 无需证书或代理设置就能看到模拟器 App 的请求，而且所有数据都留在你的 Mac 上。

### Lagsmith 会安装什么？

一个网络扩展。macOS 会请你在“系统设置”中允许一次。[查看快速入门](https://lagsmith.com/zh/docs/getting-started)。

### 它可以在哪些 Mac 上运行？

macOS 13 Ventura 或更高版本，支持 Apple 芯片和 Intel 处理器。

### 有免费版吗？

有。每次安装都会先开始 14 天 Pro 试用，无需账户或银行卡。试用结束后，免费版仍可继续使用：监视任意 App，查看它最近的 50 个请求和连接，并用 Edge 预设为它限速。

### Lagsmith 会收集数据吗？

你的流量永远不会离开你的 Mac：限速、请求监控和自动化全部在本地运行，无需账户。App 会发送匿名使用统计信息，例如使用了哪些功能，但绝不会发送主机、URL 或请求内容。[隐私](https://lagsmith.com/zh/privacy)。

[下载 Mac 版](https://downloads.lagsmith.com/Lagsmith.dmg)

免费下载，含 14 天 Pro 试用。无需账户，无需银行卡。macOS 13 Ventura 或更高版本。
