Claude Code提示词与配置约 1 分钟

Claude Code 装 Xcode 插件

Install Apple's Xcode plugin

要点

  1. 在 Claude Code 里运行 /plugin install xcode@claude-plugins-official,安装 Apple 官方 Xcode 插件。
  2. 装好后让 Claude 构建、运行和测试 App,并渲染 SwiftUI 预览。
  3. 让它驱动模拟器和真机 iPhone,读取构建日志与报错后自行修复。
  4. 可直接检索 Apple 开发者文档;Mac 上需装最新版 Xcode。

原帖开头

Apple just put Xcode inside Claude Code. It's an official Apple plugin, now in Claude Code's plugin directory: •⁠ ⁠Build, run and test your app •⁠ ⁠Render SwiftUI previews •⁠ ⁠Drive simulators and real iPhones •⁠ ⁠Read build logs and errors •⁠ ⁠Search Apple's developer doc …