From c793e92e1f3dda75807f0eb5a0c4ba7c84bed3e4 Mon Sep 17 00:00:00 2001 From: fish Date: Sun, 19 Jul 2026 22:16:38 +0800 Subject: [PATCH] =?UTF-8?q?CLAUDE.md=20=E7=BC=96=E8=AF=91=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E5=9B=BA=E5=AE=9A=E4=B8=BA=20iPhone=2017=20Pro=20?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- CLAUDE.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1638fa3..5ab5568 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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=' -configuration Debug build - -# 查看可用模拟器及运行时 -xcrun simctl list devices available -xcrun simctl list runtimes - -# 安装 / 启动 / 截图验证 UI -xcrun simctl install <路径>/Debug-iphonesimulator/LearnEnglish.app -xcrun simctl launch com.fishestlife.english -xcrun simctl io 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。 ## 架构