diff --git a/doctor/src/index.ts b/doctor/src/index.ts index b3c431469..aec53f08d 100644 --- a/doctor/src/index.ts +++ b/doctor/src/index.ts @@ -77,6 +77,21 @@ export function getHealthchecks(): Healthchecks { .length < 1, }), }, + { + label: 'Does Instruments exist', + isRequired: true, + run: async (_: EnvironmentInfo) => { + const hasInstruments = await promisify(exec)( + 'which instruments', + ) + .then(_ => true) + .catch(_ => false); + + return { + hasProblem: !hasInstruments, + }; + }, + }, ], }, }