CLAUDE.md 编译目标固定为 iPhone 17 Pro 模拟器

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 22:16:38 +08:00
parent 5b423592a5
commit c793e92e1f
+3 -11
View File
@@ -10,24 +10,16 @@ iOS 背单词应用(UIKit,纯代码 UI,无 Storyboard 布局),面向
```bash
# 编译(项目在 LearnEnglish/ 子目录,非仓库根目录)
# 固定使用 iPhone 17 Pro 模拟器作为编译目标
xcodebuild -project LearnEnglish/LearnEnglish.xcodeproj -scheme LearnEnglish \
-destination 'platform=iOS Simulator,id=<UDID>' -configuration Debug build
# 查看可用模拟器及运行时
xcrun simctl list devices available
xcrun simctl list runtimes
# 安装 / 启动 / 截图验证 UI
xcrun simctl install <UDID> <路径>/Debug-iphonesimulator/LearnEnglish.app
xcrun simctl launch <UDID> com.fishestlife.english
xcrun simctl io <UDID> screenshot /tmp/shot.png
-destination 'platform=iOS Simulator,name=iPhone 17 Pro' -configuration Debug build
```
注意:
- **改完代码只允许编译验证**`xcodebuild build` 通过即完成,禁止启动模拟器、安装 App 或截图确认(用户明确规则,UI 改动同样适用)。
- 部署目标为 iOS 26,模拟器必须是 iOS 26.x 运行时,否则安装时报系统版本过低。
- 无测试 target、无 lint 配置,验证方式 = 编译 + 模拟器运行
- 无测试 target、无 lint 配置,验证方式 = 编译。
- Xcode 工程使用同步文件夹(objectVersion 77),在 `LearnEnglish/LearnEnglish/` 下新建 .swift 文件会自动加入 target,无需改 pbxproj。
## 架构