reference
Skill4 starsChanged 33 days agoMITView on GitHub
Reference for the Xcode MCP, MobileBuildMCP and Sosumi setup xcrew installs. Load before configuring either server, and when an Xcode MCP call fails ("not approved", "produced malformed response", "File not found in project structure", a timeout), a MobileBuildMCP tool is missing, LLDB refuses `expr`, or SourceKit reports `No such module`.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- ajitta/know-your-unknownstheir own version, first seen Nov 25, 2026
- yacb2/aidextheir own version, first seen Nov 19, 2026
- yuri-xyz/skillstheir own version, first seen Nov 8, 2026
- open-telemetry/semantic-conventions-genaitheir own version, first seen Oct 8, 2026
- 20alexl/windvanetheir own version, first seen Oct 8, 2026
- modelstudioai/clitheir own version, first seen Jul 21, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- open-telemetry/semantic-conventions-genai★ 570same name
- modelstudioai/cli★ 376same name
- DeepVista-AI/deepvista-cli★ 9same name
- ajitta/know-your-unknowns★ 2same name
- yacb2/aidex★ 2same name
- yuri-xyz/skills★ 2same name
- 20alexl/windvane★ 1same name
- seshachalam-yv/etcd-druid-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Leave incrementalBuildsEnabled off: it downloads and runs xcodemake, writes a large Makefile into the project root, and was slower than …
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
xcrew reference
The routing table reaches each session at start. This file holds what each server needs to work and what to do when it doesn't. xcrew doctor checks what xcrew can't run without, its installation and the toolchain, and prints the fix for anything wrong.
MobileBuildMCP
- Formerly XcodeBuildMCP: version 2.7.1 renamed the binary, the
MOBILEBUILDMCP_*environment variables and the config folder, with no fallback to the old ones. - Config:
.mobilebuildmcp/config.yaml, read from the project root at server start.xcrew setup(or/xcrew:setup) writes it and marks it with.mobilebuildmcp/.xcrew-managed; a later setup rewrites a marked config and leaves an unmarked one alone. Delete the marker to keep hand edits. - Enabled tool groups:
simulator,sim-env(custom: erase, appearance, location, status bar, keyboard toggles),ui-automation,debugging. The session tools (session_use_defaults_profileand the like) are always there. Xcode MCP tools go through thexcodeserver, never MobileBuildMCP'sxcode-ide, which is off. A tool that "doesn't exist" usually means its group is off; groups load at server start, so restart Claude Code after changing them. - Profiles:
unit(the scheme that runs unit tests),app(app scheme and bundle ID) andui(UI-test scheme); the session briefing names the ones this project has. Setup givesunitthe scheme that runs the most unit-test targets; when several tie, it lists them, the person picks one and it becomesunit. Switch withsession_use_defaults_profile; for another module's tests, set its scheme withsession_set_defaults. Saving defaults withpersist: truealso makes that profile active — setactiveSessionDefaultsProfileback afterwards. - Tests:
test_simtakes no scheme argument; set it in the session defaults, then pass-only-testing:<Target>/<Class>throughextraArgs. - Coverage tools need an absolute
.xcresultpath;~is not expanded. - LLDB: attach, stack, breakpoints and
image listwork with the default DAP backend;exprneedsdebuggerBackend: lldb-cliin the config. - The
mobilebuildmcpcommand line resolvessimulatorNameon the newest installed iOS only; pass--simulator-idthere. The MCP server is unaffected. - Telemetry is off (
sentryDisabled: trueandMOBILEBUILDMCP_SENTRY_DISABLED=true). Themobilebuildmcp://doctorresource's "Sentry enabled" line reads only a legacy variable and says Yes regardless; its Environment Variables section is accurate. - Leave
incrementalBuildsEnabledoff: it downloads and runsxcodemake, writes a largeMakefileinto the project root, and was slower than plain rebuilds in testing.
Xcode MCP
- Works with Xcode closed once Claude Code is approved. "This agent isn't approved" → call
XcodeOpenWorkspaceon the workspace; Xcode shows a dialog the user approves and sets to always allow.xcrun mcp-server statuslists approved agents and folders. - File tools take project-navigator paths, not disk paths (
File not found in project structuremeans a disk path was passed). Look paths up withXcodeGlobfirst. - Previews, snippets and per-file diagnostics need the active scheme to build the file ("Active scheme does not build this file" →
XcodeSwitchScheme). Switching scheme or destination also changes the user's Xcode window. - Builds land in Xcode's own DerivedData, shared with the IDE, so they share its failures.
RenderPreview: the first render of a module builds it (minutes), later variants take seconds. Variants: light/dark, contrast, Dynamic Type sizes, orientation, locales.XcodeRefreshCodeIssuesInFilecan time out on a file created moments ago; retry once.- Tests run through the active scheme's test plan; schemes without one fall back to their test targets.
XcodeWritere-saves the whole project file in Xcode's newer format. In a Tuist or XcodeGen project it's refused: write files with Write and the generator picks them up. In a classic project it's allowed, and it's the way a new file joins its target; projects using synchronized folders pick up files written with Write anyway.XcodeUpdateandXcodeRMare harmless but add nothing over Edit andrm.
When an Xcode MCP build fails with "… produced malformed response"
Often a macro plugin (for example a mocking library's …Macros binary) was killed at launch: in projects generated by Tuist before 4.203, a copy phase overwrites the plugin in place with cp -f, and macOS kills later launches of a binary rewritten that way. The indexer's copy (Index.noindex) dies the same way and breaks macro expansion in the editor. The fix is to upgrade Tuist to 4.203 or later and regenerate; until then, clean the build folder and rebuild, which replaces the dead plugin. When no project has the phase, the cause is another one: a toolchain mismatch (xcode-select -p against the Xcode in use) or stale prebuilt macros; clean the build folder.
When a build fails with errors that don't point at the code
After a failed build or test run, xcrew adds a note when the cause is this Mac (a corrupt module cache, a simulator that's gone) and names the fix; it never runs the fix. For an earlier failure, run xcrew why, which reads MobileBuildMCP's newest build log, or xcrew why --log <file>. When it says nothing on the Mac explains the failure, the errors are the code's.
SourceKit No such module errors
Claude Code's Swift language server (sourcekit-lsp) reads build settings only from a Swift package, a compilation database or a build server; it cannot read an Xcode project. Without a Package.swift it checks each file alone against the macOS SDK, so import UIKit and every first-party import show as errors and go-to-definition finds nothing across modules. Only same-file errors are real. Check with the Xcode MCP instead; xcode-build-server can give sourcekit-lsp the real flags from Xcode's build log (untested by xcrew).
Apple documentation
Sosumi first: search returns short results with links (including WWDC sessions), and each fetched page shows the API's minimum OS version. Conformance conditions in Apple's data can be wrong; check the SDK's .swiftinterface when one matters. The Xcode MCP's DocumentationSearch matches the installed SDK but omits availability and returns long results — use it offline.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

