Skip to content

[Bug]: Build fails in XCode even though it passes using the MCP build tool #75

@chknd1nner

Description

@chknd1nner

Bug Description

In VSCode using Claude Code, model will use the build_mac_proj and it reports success.

But when I go into XCode and press the play button, it says the build failed. I have to screenshot the debug log from XCode IDE to show CC the issue.

Questions

  1. How can it fail to build in XCode when the MCP server build tool passed the build?
  2. Is there a way to let CC see the error output that is the same as you get when pressing play in XCode?

Debug Output

NA

Editor/Client

VSCode

MCP Server Version

Latest

LLM

Claude Sonnet 4

MCP Configuration

{
  "mcpServers": {
    "XcodeBuildMCP": {
      "command": "npx",
      "args": [
        "-y",
        "xcodebuildmcp@latest"
      ]
    }
  }
}

Steps to Reproduce

  1. Instruct LLM to build the app and test
  2. Open XCode to try testing the app manually

Expected Behavior

If it fails to build in XCode, it should also fail to build using the MCP build tools. An error log should be output exactly the same as would happen by pressing play in XCode. LLM fixes issues and tries building again in a loop until it builds successfully.

Actual Behavior

LLM uses MCP build tool. Tool reports success. LLM reports to user everything tests ok and ready for testing by user.

User opens XCode and presses play and experiences build error(s).

Error Messages

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions