Skip to content

Commit 4ca936b

Browse files
fix(mobile): reject shared iOS installs on Intel Macs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent f2df420 commit 4ca936b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎scripts/mobile-native-client.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@ const resolveDevice = Effect.fn("nativeClient.resolveDevice")(function* (
262262
return yield* new NativeClientError({
263263
message: "Run iOS installs on the Mac that hosts the simulator.",
264264
});
265+
// The shared iOS client is an arm64 simulator build; Intel simulators cannot run it.
266+
if ((yield* HostProcess.Architecture) !== "arm64")
267+
return yield* new NativeClientError({
268+
message: "mobile:install needs an Apple silicon Mac. Use vp run ios:dev on Intel Macs.",
269+
});
265270
const listing = yield* decodeSimulators(
266271
yield* command("xcrun", ["simctl", "list", "devices", "available", "--json"]),
267272
);

0 commit comments

Comments
 (0)