Claude Code Desktop can now run, test, and debug iOS apps on Apple's new foldable iPhone Duo simulator.
And here's the interesting part: Claude can actually fold and unfold the simulated phone to check how your app behaves in different configurations.
This is more than just another AI coding assistant generating SwiftUI code.
Claude can now interact with a running iOS app, inspect its interface, identify layout problems, apply approved fixes, and verify the results directly in the simulator.
WHAT'S NEW?
• iPhone Duo simulation: run your app on Apple's foldable iPhone simulator directly beside your Claude Code conversation.
• Automatic folding: Claude can switch between closed, half-open, and fully open configurations.
• Custom hinge angles: test specific fold angles between 1 and 179 degrees.
• Visual UI testing: Claude can tap, swipe, navigate screens, and inspect how the app behaves.
• Adaptive layout debugging: detect interface elements that break when the device changes size or orientation.
• Apple's App Resizability skill: scan existing iOS projects for common layout problems and suggest corrections.
• AI-assisted fixes: review Claude's proposed changes, approve them, and let it test the updated interface.
• Live simulator preview: watch Claude interact with your app without leaving the desktop conversation.
• Xcode integration: use Apple's official Xcode plugin to build, run, test, and inspect native applications from Claude Code.
HOW TO TEST YOUR APP
1. Update Claude Desktop to version 4.29.0 or later.
2. Install Xcode 27.1 or newer with the corresponding iOS Simulator runtime.
3. Open your iOS project in Claude Code Desktop on macOS.
4. Ask Claude:
"Run my app on the iPhone Duo simulator and check the interface in closed, half-open, and open positions."
Claude can launch the simulator, interact with your app, and inspect the layout in each configuration.
Already have an existing iOS application?
Ask:
"Prepare this app for iPhone Duo. Find layout issues, propose fixes, and verify the approved changes in the simulator."
Claude may offer to export Apple's App Resizability skill from Xcode to help identify common problems.
WORKING IN THE TERMINAL?
Apple's Xcode plugin is available through the official Claude Code plugin marketplace.
Install it with:
/plugin install xcode@claude-plugins-official
The plugin provides access to Xcode capabilities, including:
• Building and running Xcode projects.
• Executing tests.
• Rendering SwiftUI previews.
• Working with simulators.
• Reading build logs and diagnostics.
• Searching Apple's developer documentation.
WHY IS THIS INTERESTING?
Foldable devices introduce additional complexity into mobile app development.
An interface that works perfectly on a conventional iPhone might behave incorrectly when the display changes dimensions, the hinge moves, or navigation elements change position.
Traditionally, developers have to reproduce these scenarios manually.
Now an AI coding agent can inspect multiple device configurations, detect certain problems, suggest fixes, and repeat the tests.
This brings AI-assisted development closer to a complete build-test-debug workflow.
But there are limitations.
The integrated simulator is available in local Claude Code Desktop sessions on macOS, not cloud or SSH sessions.
Claude controls simulated devices, not physical iPhones.
Automated testing also doesn't replace accessibility reviews, real-device testing, or human UX evaluation.
The simulator can expose screenshots to Anthropic under your conversation's retention settings, so avoid testing with real sensitive accounts.
Still, this is an important development.
AI coding agents are moving beyond writing code toward verifying how applications actually behave.
OFFICIAL DOCUMENTATION
Claude Code iOS Simulator:
https://code.claude.com/docs/en/desktop-ios-simulator
iPhone Duo testing:
https://code.claude.com/docs/en/desktop-ios-simulator#test-your-app-on-an-iphone-duo
Apple's iPhone Duo developer guide:
https://developer.apple.com/iphone-duo/prepare/
Claude Code plugins:
https://code.claude.com/docs/en/plugins
Would you trust Claude to test your app's interface automatically, or would you still prefer checking every device configuration yourself?
#ClaudeCode #iPhoneDuo #iOSDevelopment
YouTube / ABVX
