Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
### Fixed
- Update UI automation guard guidance to point at `debug_continue` when paused.
- Fix tool loading bugs in static tool registration.
- Fix xcodemake command argument corruption when project directory path appears as substring in non-path arguments.

## [1.16.0] - 2025-12-30
- Remove dynamic tool discovery (`discover_tools`) and `XCODEBUILDMCP_DYNAMIC_TOOLS`. Use `XCODEBUILDMCP_ENABLED_WORKFLOWS` to limit startup tool registration.
Expand Down
10 changes: 8 additions & 2 deletions src/utils/xcodemake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,14 @@ export async function executeXcodemakeCommand(

const xcodemakeCommand = [getXcodemakeCommand(), ...buildArgs];

// Remove projectDir from arguments
const command = xcodemakeCommand.map((arg) => arg.replace(projectDir + '/', ''));
// Remove projectDir from arguments if present at the start
const prefix = projectDir + '/';
const command = xcodemakeCommand.map((arg) => {
if (arg.startsWith(prefix)) {
return arg.substring(prefix.length);
}
return arg;
});

return getDefaultCommandExecutor()(command, logPrefix);
}
Expand Down
Loading