What Is the Xcode Plugin for Claude Code? Build, Test, SwiftUI Previews and Simulator With Apple's Plugin: Setup and Settings
The Xcode plugin is the plugin Apple published in Anthropic's official Claude plugin marketplace, and it connects Claude Code to the Xcode on your computer. Once it is installed you can ask Claude Code to build your iOS or macOS app, run the tests, read and fix build errors, render the preview of a SwiftUI screen, open the app in Simulator and check it with a screenshot, and search Apple developer documentation. The plugin is produced by Xcode itself on your Mac; it doesn't run on Windows or Linux. The plugin and Xcode are free, while Claude Code needs a paid Claude plan (Pro, Max, Ultra, Team, Enterprise) or a Console account.
What is the Xcode plugin for Claude Code?
The plugin Apple published in the official Claude plugin marketplace; it lets Claude Code build and test Xcode projects, render SwiftUI previews, drive Simulator and search Apple documentation.
How do you install the Xcode plugin?
First allow external agents in Xcode > Settings > Intelligence, then type /plugin install xcode@claude-plugins-official in Claude Code and accept the xcrun command it shows. Remember to open the project in Xcode.
Is the Xcode plugin free?
The plugin and Xcode are free. Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account; the free claude.ai plan isn't enough.
- What it does
- Lets Claude Code use Xcode: build, test, previews, Simulator, docs
- Publisher
- Apple Inc. (in the official Claude plugin marketplace)
- Where
- Mac only; Claude Code (terminal)
- Requirements
- A Mac + Xcode (minimum version not clear; the current Xcode 27 needs macOS Tahoe 26.6+), Claude Code 2.1.229+
- Cost
- The plugin and Xcode are free; Claude Code needs a paid plan
What is the Xcode plugin for Claude Code for?
Claude Code can write code, but on its own it can't see whether an iOS app really builds, whether the tests pass or how a screen looks. The Xcode plugin closes that gap: it opens Xcode's own tools to Claude Code. So Claude makes the change, builds, reads the error, fixes it and checks the result in Simulator or in a SwiftUI preview.
Your project files stay on your computer; the content Claude Code reads goes to Anthropic, as in every Claude Code session.
Who it's for: iOS and macOS app developers and mobile app agencies. For example, an agency tells Claude Code that the cart screen of a restaurant ordering app breaks in dark mode; Claude fixes the screen, renders the preview in light and dark appearance, opens the app in Simulator and shows the result with a screenshot.
How it differs from Claude inside Xcode: since Xcode 26 you can add a Claude account to Xcode's own coding assistant, which runs inside the Xcode window. This plugin does the opposite: it lets Claude Code in the terminal use Xcode.
Source: claude-plugins-official marketplace.json (the xcode entry, author Apple Inc.) and the Xcode 27 release notes, December 2, 2026. The "restaurant app" is a usage scenario.
How does the Xcode plugin work?
xcrun agent plugin path --plugin-format claude command the marketplace names; if you accept, it runs it.What came with Xcode 27: according to Apple's release notes, agents can now boot simulators, install and launch apps, send touch events and capture screenshots. The preview tool can render light/dark appearance, portrait/landscape orientation and type size variants; tools to read the debugger console, switch schemes and destinations, and edit String Catalog translations were added too.
Source: the Claude Code docs (command source, link mode), Apple's "Giving external agents access to Xcode" and the Xcode 27 release notes, December 2, 2026. The exact contents of the plugin folder (how many skills or tools) aren't clear in the official sources, because local Xcode produces it.
What can you ask Claude Code with the Xcode plugin?
Open your project in Xcode, then write to Claude Code in plain words. The requests below are examples written around the jobs in the plugin's official description; the result depends on your project.
Source: the plugin's marketplace.json description (build, run, test, SwiftUI previews, simulators and devices, build logs, Apple developer documentation), December 2, 2026. CartView is an example screen name.
How do you install the Xcode plugin for Claude Code?
- Allow it in Xcode: Xcode > Settings > Intelligence; under Model Context Protocol, choose Always or "While Xcode is Open" from the "Allow External Agents to Use Xcode Tools" menu.
- Install the plugin: With one of the tabs below. Claude Code shows the xcrun command it will run; accept it.
- Open the project: Open your project in Xcode before you write to Claude Code.
› /plugin install xcode@claude-plugins-official› claude plugin install xcode@claude-plugins-officialYou are asked to accept the command; in a script that can't answer the prompt, add --yes to accept it. On a machine where Claude Code has never been opened interactively, run claude plugin marketplace add anthropics/claude-plugins-official first.
Apple's own documentation describes adding Xcode's MCP server directly. This route works for Codex too.
› claude mcp add --transport stdio xcode -- xcrun mcpbridge
codex mcp add xcode -- xcrun mcpbridge!Check that the command shown at install is exactly xcrun agent plugin path --plugin-format claude; if you see anything else, don't accept it.
Source: the Claude Code docs (installing plugins, command source) and Apple's "Giving external agents access to Xcode", December 2, 2026. Command sources were added in Claude Code 2.1.229; on an older version, update Claude Code first.
Where does the Xcode plugin work? Mac, Windows, Codex
| Claude Code (Mac)Yes | The plugin is made for it; it needs a Mac with Xcode installed. |
|---|---|
| Windows / LinuxNo | Xcode exists only on macOS; Claude Code refuses to install a link-mode plugin on Windows. |
| CodexPartly | Not as a plugin, but through Apple's xcrun mcpbridge MCP route. |
| Claude app (web, desktop)Unclear | The marketplace entry mentions only Claude Code. |
Source: marketplace.json, the Claude Code docs (no link mode on Windows) and Apple's documentation, December 2, 2026. The minimum Xcode version isn't clear in the official sources; Xcode 27 needs macOS Tahoe 26.6 or later.
What does the Xcode plugin access?
- The open Xcode project: source files, schemes, build settings
- Build logs, diagnostics and the debugger console
- Preview and Simulator screenshots; Apple developer documentation
- Edits project files; builds, runs and tests
- Installs and launches apps in Simulator and sends touches
- Choosing Never in Xcode's setting stops external agents from using Xcode tools
- Xcode alerts you when an agent connects and while it is active
- A company admin can turn off command-source plugins with
disableCommandPluginSources
!The project content Claude Code reads goes to Anthropic; for projects with client code or secret keys, check your contract and Anthropic's data policy.
Is the Xcode plugin free? Which Claude plan do you need?
The plugin itself is free, and Xcode is a free download on the App Store. The cost is on the Claude Code side: Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console (API) account; the free claude.ai plan doesn't include Claude Code. It can also be used through Amazon Bedrock, Google Cloud or Microsoft Foundry.
| Xcode pluginYes | Free |
|---|---|
| XcodeYes | Free on the App Store in Turkey |
| Claude CodePartly | A paid Claude plan or a Console account |
Source: the Claude Code setup docs and the App Store listing (Turkey, Xcode 27.2), December 2, 2026. For current plan prices, see Claude's pricing page.
Can you use the Xcode plugin in Turkish?
| Writing the request in TurkishYes | Claude Code understands a Turkish request and can reply in Turkish. |
|---|---|
| Xcode interfaceNo | English only, according to the App Store listing. |
| DocumentationNo | The Apple and Claude Code docs are in English. |
Tip: since Xcode's menu and setting names are in English, write scheme, target and screen names in the request exactly as they appear in the project.
How do you update and remove the Xcode plugin?
- Update: No separate update is needed; the plugin is taken again from the installed Xcode every session. Updating Xcode is enough.
- Removal: Remove the Xcode plugin from the panel that opens when you type
/plugin uninstallin Claude Code, or from the Installed tab of the /plugin menu. - Turning off access: In Xcode > Settings > Intelligence, choose Never for "Allow External Agents to Use Xcode Tools".
Tools close to the Xcode plugin
Frequently asked questions
What is the difference between the plugin and the xcrun mcpbridge MCP route?
Both connect Claude Code to Xcode's tools. The MCP route is described in Apple's documentation and works for Codex too; the plugin installs with one command from Claude Code's official marketplace and stays current as Xcode updates.
Does it work on Windows?
No. Xcode runs only on macOS, and Claude Code doesn't install this kind of plugin on Windows.
Related guides
Sources
- Official Claude plugin marketplace (marketplace.json)
- Apple: Giving external agents access to Xcode
- Xcode 27 release notes
- Claude Code: install and manage plugins
- Claude Code: command plugin sources
- Claude Code setup and required plans
- Xcode 26 release notes
- PR #6338: Xcode plugin added to the marketplace
- App Store: Xcode (Turkey)
- Xcode (Apple Developer)
Not clear in the official sources: The minimum Xcode version the plugin needs · the exact contents of the plugin folder (local Xcode produces it) · whether it can be used in the Claude app (web, desktop). Each is noted in the relevant section.




