ios
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseiOS Platform
iOS平台
iOS-specific development with XcodeBuildMCP automation tools.
借助XcodeBuildMCP自动化工具进行iOS专属开发。
Agent Workflow (MANDATORY)
Agent工作流(必填)
Before ANY implementation, use to spawn 3 agents:
TeamCreate- fuse-ai-pilot:explore-codebase - Analyze existing iOS patterns
- fuse-ai-pilot:research-expert - Verify latest iOS 26 docs via Context7/Exa
- mcp__XcodeBuildMCP__discover_projs - Find Xcode projects
After implementation, run fuse-ai-pilot:sniper for validation.
在进行任何开发实现前,使用生成3个Agent:
TeamCreate- fuse-ai-pilot:explore-codebase - 分析现有iOS开发模式
- fuse-ai-pilot:research-expert - 通过Context7/Exa验证最新iOS 26文档
- mcp__XcodeBuildMCP__discover_projs - 查找Xcode项目
开发实现完成后,运行fuse-ai-pilot:sniper进行验证。
Overview
概述
When to Use
适用场景
- Building iPhone applications
- Testing on iOS Simulator
- Deploying to physical devices
- Automating UI interactions
- Debugging app behavior
- UIKit integration in SwiftUI
- 构建iPhone应用
- iOS模拟器测试
- 真机部署
- UI交互自动化
- 应用行为调试
- SwiftUI中集成UIKit
Why iOS Skill
选择iOS Skill的原因
| Feature | Benefit |
|---|---|
| XcodeBuildMCP | Automated build and test |
| UI Automation | Scripted user interactions |
| Simulator tools | Fast iteration cycle |
| Device tools | Real hardware testing |
| 功能 | 优势 |
|---|---|
| XcodeBuildMCP | 自动化构建与测试 |
| UI自动化 | 脚本化用户交互 |
| 模拟器工具 | 快速迭代周期 |
| 真机工具 | 真实硬件测试 |
MCP Tools Available
可用的MCP工具
Simulator Tools
模拟器工具
- - Build for simulator
build_sim - - Start simulator
boot_sim - - Run app
launch_app_sim - - Execute tests
test_sim
- - 为模拟器构建应用
build_sim - - 启动模拟器
boot_sim - - 运行应用
launch_app_sim - - 执行测试
test_sim
Device Tools
真机工具
- - Build for device
build_device - - Deploy to device
install_app_device - - Show connected devices
list_devices
- - 为真机构建应用
build_device - - 部署至真机
install_app_device - - 显示已连接设备
list_devices
UI Automation
UI自动化
- ,
tap- Touch interactionsswipe - - Capture screen
screenshot - - Get view hierarchy
snapshot_ui
- ,
tap- 触摸交互操作swipe - - 捕获屏幕截图
screenshot - - 获取视图层级
snapshot_ui
Reference Guide
参考指南
| Need | Reference |
|---|---|
| Simulator build/test | simulator-tools.md |
| Device deployment | device-tools.md |
| Touch automation | ui-automation.md |
| LLDB debugging | debugging.md |
| UIKit in SwiftUI | uikit-integration.md |
| 需求 | 参考文档 |
|---|---|
| 模拟器构建/测试 | simulator-tools.md |
| 真机部署 | device-tools.md |
| 触摸自动化 | ui-automation.md |
| LLDB调试 | debugging.md |
| SwiftUI中集成UIKit | uikit-integration.md |
Best Practices
最佳实践
- Build validation - Always build before commit
- Simulator first - Faster iteration
- Device testing - Required before release
- Accessibility IDs - Enable UI automation
- Screenshots - Document UI states
- Test on oldest supported - iOS version compatibility
- 构建验证 - 提交代码前务必完成构建
- 优先模拟器 - 实现快速迭代
- 真机测试 - 发布前必须完成
- 无障碍ID - 启用UI自动化
- 截图留存 - 记录UI状态
- 兼容旧版本 - 测试最低支持iOS版本