-
-
Notifications
You must be signed in to change notification settings - Fork 193
Description
Bug Description
Hi, not sure if it's just me but on an M1 Mac with Xcode 16 I have a project and whenever Claude Code tries to run tests with this command:
XcodeBuildMCP:test_sim_id_proj (MCP)(projectPath: "/path/to/MyApp.xcodeproj", scheme: "MyApp", simulatorId: "123UUID456...")
If it runs into any warnings it will output something like this:
Error: ❌ [stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
Any warning output causes the tool to return an error response instead of the actual test results. This makes it impossible to get test results when there are harmless warnings present.
After Claude Code gets the error/warning, it tries to run the tests directly like this:
Bash(cd "/path/to/MyApp" && xcodebuild test -project "MyApp.xcodeproj" -scheme "MyApp" -destination "platform=iOS
Simulator,id=123UUID456…)
So right now Claude Code is not getting anything useful when there are warnings when it tries to run test_sim_id_proj. Is this just me or is this a problem with XcodeBuildMCP?
Debug Output
[DEBUG] xcodemake is disabled, using standard xcodebuild
[INFO] Server initialized (version 1.9.0)
[INFO] XcodeBuildMCP Server running on stdio
[INFO] XcodeBuildMCP server (version 1.9.0) started successfully
Editor/Client
Cursor 1.0.0
MCP Server Version
1.9.0
LLM
Claude 4 Opus
MCP Configuration
"XcodeBuildMCP": {
"command": "npx",
"args": [
"-y",
"xcodebuildmcp@latest"
],
"env": {
"XCODEBUILDMCP_GROUP_PROJECT_DISCOVERY": "true",
"XCODEBUILDMCP_GROUP_IOS_SIMULATOR_WORKFLOW": "true"
}Steps to Reproduce
Have Claude Code try to run tests using XcodeBuildMCP:test_sim_id_proj when the project has warnings.
Expected Behavior
The test results will show instead of warnings being output as errors.
Actual Behavior
Test results are not shown, but instead warnings are output as errors.
Error Messages
Error: ❌ [stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations: