Skip to content

Commit 0192fa6

Browse files
committed
fix: pass simulatorId to inferPlatform in build_run_sim
The simulatorId parameter was not being passed to inferPlatform, causing platform detection to fall back to scheme-based inference even when a specific simulator UUID was provided. This broke non-iOS simulator detection (e.g. watchOS, tvOS) when specified by UUID.
1 parent 6a237d7 commit 0192fa6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/mcp/tools/simulator/build_run_sim.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ export async function build_run_simLogic(
129129
projectPath: params.projectPath,
130130
workspacePath: params.workspacePath,
131131
scheme: params.scheme,
132-
simulatorName: params.simulatorId ? undefined : params.simulatorName,
132+
simulatorId: params.simulatorId,
133+
simulatorName: params.simulatorName,
133134
},
134135
executor,
135136
);

0 commit comments

Comments
 (0)