Skip to content

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.

YouYou write the request
Claude CodePlans and edits the code
Xcode pluginProduced by Xcode on your Mac
Xcode and SimulatorBuild, test, 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?

InstallClaude Code shows you the xcrun agent plugin path --plugin-format claude command the marketplace names; if you accept, it runs it.
Used in placeThe command prints the plugin folder Xcode produces; Claude Code uses it in place without copying it.
Connecting to XcodeXcode alerts you when the external agent connects and while it is active.
WorkClaude builds, tests, renders previews, drives Simulator and reports the result to you.
The command runs again at install, at update and once per session; when you update Xcode, the plugin picks up the new version without reinstalling.

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.

Build and fix the errors"Build the app's main scheme. If there are errors, read the build log, fix them and build again; at the end, summarize what you changed."What you get: the build result, the fixed files and a short summary.
Run the tests"Run the test scheme, list the failing tests and explain the cause of each one."What you get: passing and failing tests, why the failing ones fail and a suggested fix.
Check a SwiftUI screen in light and dark appearance"Render the CartView preview in light and dark appearance; if any text is unreadable in dark appearance, fix it."What you get: preview snapshots and the fixed view code.
Try it in Simulator"Open the app in the iPhone simulator, go from the sign-in screen to the cart and take a screenshot of each step."What you get: step-by-step screenshots and an explanation if it gets stuck anywhere.
Rely on Apple documentation"Search Apple developer documentation for the current notification permission API and add it to the app accordingly."What you get: the relevant documentation section and code based on it.

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?

  1. 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.
  2. Install the plugin: With one of the tabs below. Claude Code shows the xcrun command it will run; accept it.
  3. Open the project: Open your project in Xcode before you write to Claude Code.
From the official marketplace› /plugin install xcode@claude-plugins-official

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

Build, test and read errorsHave Claude Code build and run an Xcode scheme, run the tests, and read and fix build errors.Terminal · A Mac, Xcode and Claude Code; your project open in Xcode · details
SwiftUI previews and SimulatorRender a SwiftUI preview, have the app opened in Simulator and check the interface with a screenshot.Terminal · External agents allowed in Xcode's Intelligence settings · details
Search Apple documentationLet Claude Code search Apple developer documentation and base API usage on it.Terminal · The plugin installed · details
Claude Code (Mac)YesThe plugin is made for it; it needs a Mac with Xcode installed.
Windows / LinuxNoXcode exists only on macOS; Claude Code refuses to install a link-mode plugin on Windows.
CodexPartlyNot as a plugin, but through Apple's xcrun mcpbridge MCP route.
Claude app (web, desktop)UnclearThe 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?

Reads
  • The open Xcode project: source files, schemes, build settings
  • Build logs, diagnostics and the debugger console
  • Preview and Simulator screenshots; Apple developer documentation
Does
  • Edits project files; builds, runs and tests
  • Installs and launches apps in Simulator and sends touches
You're in control
  • 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 pluginYesFree
XcodeYesFree on the App Store in Turkey
Claude CodePartlyA 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 TurkishYesClaude Code understands a Turkish request and can reply in Turkish.
Xcode interfaceNoEnglish only, according to the App Store listing.
DocumentationNoThe 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?

  1. Update: No separate update is needed; the plugin is taken again from the installed Xcode every session. Updating Xcode is enough.
  2. Removal: Remove the Xcode plugin from the panel that opens when you type /plugin uninstall in Claude Code, or from the Installed tab of the /plugin menu.
  3. 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

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.