ios

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

iOS Platform

iOS平台

iOS-specific development with XcodeBuildMCP automation tools.
借助XcodeBuildMCP自动化工具进行iOS专属开发。

Agent Workflow (MANDATORY)

Agent工作流(必填)

Before ANY implementation, use
TeamCreate
to spawn 3 agents:
  1. fuse-ai-pilot:explore-codebase - Analyze existing iOS patterns
  2. fuse-ai-pilot:research-expert - Verify latest iOS 26 docs via Context7/Exa
  3. mcp__XcodeBuildMCP__discover_projs - Find Xcode projects
After implementation, run fuse-ai-pilot:sniper for validation.

在进行任何开发实现前,使用
TeamCreate
生成3个Agent:
  1. fuse-ai-pilot:explore-codebase - 分析现有iOS开发模式
  2. fuse-ai-pilot:research-expert - 通过Context7/Exa验证最新iOS 26文档
  3. 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的原因

FeatureBenefit
XcodeBuildMCPAutomated build and test
UI AutomationScripted user interactions
Simulator toolsFast iteration cycle
Device toolsReal hardware testing

功能优势
XcodeBuildMCP自动化构建与测试
UI自动化脚本化用户交互
模拟器工具快速迭代周期
真机工具真实硬件测试

MCP Tools Available

可用的MCP工具

Simulator Tools

模拟器工具

  • build_sim
    - Build for simulator
  • boot_sim
    - Start simulator
  • launch_app_sim
    - Run app
  • test_sim
    - Execute tests
  • build_sim
    - 为模拟器构建应用
  • boot_sim
    - 启动模拟器
  • launch_app_sim
    - 运行应用
  • test_sim
    - 执行测试

Device Tools

真机工具

  • build_device
    - Build for device
  • install_app_device
    - Deploy to device
  • list_devices
    - Show connected devices
  • build_device
    - 为真机构建应用
  • install_app_device
    - 部署至真机
  • list_devices
    - 显示已连接设备

UI Automation

UI自动化

  • tap
    ,
    swipe
    - Touch interactions
  • screenshot
    - Capture screen
  • snapshot_ui
    - Get view hierarchy

  • tap
    ,
    swipe
    - 触摸交互操作
  • screenshot
    - 捕获屏幕截图
  • snapshot_ui
    - 获取视图层级

Reference Guide

参考指南

NeedReference
Simulator build/testsimulator-tools.md
Device deploymentdevice-tools.md
Touch automationui-automation.md
LLDB debuggingdebugging.md
UIKit in SwiftUIuikit-integration.md

需求参考文档
模拟器构建/测试simulator-tools.md
真机部署device-tools.md
触摸自动化ui-automation.md
LLDB调试debugging.md
SwiftUI中集成UIKituikit-integration.md

Best Practices

最佳实践

  1. Build validation - Always build before commit
  2. Simulator first - Faster iteration
  3. Device testing - Required before release
  4. Accessibility IDs - Enable UI automation
  5. Screenshots - Document UI states
  6. Test on oldest supported - iOS version compatibility
  1. 构建验证 - 提交代码前务必完成构建
  2. 优先模拟器 - 实现快速迭代
  3. 真机测试 - 发布前必须完成
  4. 无障碍ID - 启用UI自动化
  5. 截图留存 - 记录UI状态
  6. 兼容旧版本 - 测试最低支持iOS版本