This commit is contained in:
2026-04-10 02:22:02 +08:00
parent c436f68f5e
commit b3ed93865c
6 changed files with 80 additions and 38 deletions

View File

@@ -1,5 +1,45 @@
# test_one
## 启动模拟器
### 查看可用模拟器
```bash
flutter devices
```
### 启动指定模拟器
```bash
# 根据设备 ID 启动
flutter emulators --launch <emulator_id>
# 或直接运行,会自动选择已连接的设备
flutter run
```
```
### 常用命令
```bash
# 列出所有模拟器
xcrun simctl list devices
# 启动 iOS 模拟器
open -a Simulator
# 查看当前连接的设备
flutter devices
```
## 运行应用
```bash
# debug 模式运行
flutter run
# release 模式运行
flutter run --release
# 指定设备运行
flutter run -d <device_id>
```