mirror of
https://github.com/morluto/rea.git
synced 2026-11-12 01:41:21 +00:00
14 lines
469 B
TypeScript
14 lines
469 B
TypeScript
import { spawnSync } from "node:child_process";
|
|
|
|
/**
|
|
* Whether Xcode's ibtool can compile Interface Builder sources on this host.
|
|
* Command Line Tools install the /usr/bin/ibtool and xcrun shims without the
|
|
* tool itself, so probe resolution instead of checking the shim path.
|
|
*/
|
|
export const xcodeIbtoolAvailable =
|
|
process.platform === "darwin" &&
|
|
spawnSync("/usr/bin/xcrun", ["--find", "ibtool"], {
|
|
stdio: "ignore",
|
|
timeout: 5_000,
|
|
}).status === 0;
|