Update instruments check
Summary: We no longer need to check for instruments but it's useful to check if we have xctrace as it was added somewhat recently to xcrun. Reviewed By: mweststrate Differential Revision: D31232872 fbshipit-source-id: 0f496c56520bf752cf7dbd5005c7832c80c2bc26
This commit is contained in:
committed by
Facebook GitHub Bot
parent
795a3d30a0
commit
c2848df7f2
@@ -236,15 +236,17 @@ export function getHealthchecks(): Healthchecks {
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'ios.instruments',
|
||||
label: 'Instruments exists',
|
||||
key: 'ios.xctrace',
|
||||
label: 'xctrace exists',
|
||||
isRequired: true,
|
||||
run: async (_: EnvironmentInfo) => {
|
||||
const result = await tryExecuteCommand('which instruments');
|
||||
const result = await tryExecuteCommand(
|
||||
'xcrun xctrace version',
|
||||
);
|
||||
const hasProblem = result.hasProblem;
|
||||
const message = hasProblem
|
||||
? `Instruments not found. Please try to re-install Xcode (https://developer.apple.com/xcode/). ${result.message}.`
|
||||
: `Instruments are installed. ${result.message}.`;
|
||||
? `xctrace is not available. Please ensure you have Xcode installed and are running a recent version (https://developer.apple.com/xcode/). ${result.message}.`
|
||||
: `xctrace is available. ${result.message}.`;
|
||||
return {
|
||||
hasProblem,
|
||||
message,
|
||||
|
||||
Reference in New Issue
Block a user