ios
iOS platform-specific development with XcodeBuildMCP tools for simulator, device, UI automation, and debugging. Use when building iPhone apps, testing on simulator/device, or automating UI interaction
Files7
View on GitHubSKILL.mdplugins/swift-apple-expert/skills/ios/SKILL.md
GitHub<objective>
Covers iOS-specific development using XcodeBuildMCP automation tools: building and testing on the iOS Simulator, deploying to physical devices, scripted UI interactions (tap, swipe, screenshot, view-hierarchy snapshot), LLDB debugging, and integrating UIKit views inside SwiftUI.
Lists the concrete MCP tools available for each phase — simulator tools (build_sim, boot_sim, launch_app_sim, test_sim), device tools (build_device, install_app_device, list_devices), and UI automation primitives.
Best practices: build before every commit, iterate on the simulator first, always test on a real device before release, enable accessibility identifiers for UI automation, and validate against the oldest supported iOS version. </objective>
iOS Platform
iOS-specific development with XcodeBuildMCP automation tools.
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Analyze existing iOS patterns
- fuse-ai-pilot:research-expert - Verify latest iOS 27.2 docs via Context7/Exa
- mcp__XcodeBuildMCP__discover_projs - Find Xcode projects
After implementation, run fuse-ai-pilot:sniper for validation.
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
Why iOS Skill
| Feature | Benefit |
|---|---|
| XcodeBuildMCP | Automated build and test |
| UI Automation | Scripted user interactions |
| Simulator tools | Fast iteration cycle |
| Device tools | Real hardware testing |
MCP Tools Available
Simulator Tools
build_sim- Build for simulatorboot_sim- Start simulatorlaunch_app_sim- Run apptest_sim- Execute tests
Device Tools
build_device- Build for deviceinstall_app_device- Deploy to devicelist_devices- Show connected devices
UI Automation
tap,swipe- Touch interactionsscreenshot- Capture screensnapshot_ui- Get view hierarchy
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 (native Map / WebView first) |
uikit-integration.md |
| UIKit 26-27: automatic Observable tracking, iPhone Duo hinge and vertical bars, state restoration, TextKit tables, menu images | uikit-26-27.md |
| Passkeys, MapKit, CloudKit, TipKit, notifications, background tasks, HealthKit, CarPlay, Chart3D | apple-frameworks |
| Toolbars, search as a tab, tab bar minimize, scroll edge effects, menu icons | toolbars-navigation.md |
Liquid Glass on iOS
API table and rules live in liquid-glass.md; do not duplicate them here. iOS specifics (HIG, read 2026-11-13):
- The tab bar floats above content at the bottom (HIG tab-bars, 2026-06-08); with an accessory (MiniPlayer) it can minimize on scroll (
tabBarMinimizeBehavior(_:),tabViewBottomAccessory(content:), iOS 26.0). A dedicated search tab (Tab(role: .search)) can sit at the trailing end; alternatives are search in a bottom or top toolbar (HIG search-fields). - Toolbars (HIG toolbars, 2025-12-16): space is limited, so put essential actions first and the rest in a More menu; group items with
ToolbarSpacer; do not paint custom bar backgrounds. - Scroll edge effects under bars (HIG scroll-views, 2026-06-08): keep
.automatic;.softneeds legibility testing. Standard bars, sheets and menus take glass from the system (HIG materials). - Live Activities: limited-width compact/minimal layouts (landscape, iPhone Duo, many activities) - hig-system-surfaces.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 (minimum deployment target, independent of the 27.2 SDK you build with)
- 27 SDK launch rules - UIKit apps must use the scene-based life cycle or they fail to launch; Info.plist needs a launch screen key; On Demand Resources is deprecated (Background Assets). Details:
swift-core/references/sdk-27-changes.md