Add SDK location unit tests (#52691)

This commit is contained in:
Jenn Magder
2020-03-16 16:02:22 -07:00
committed by GitHub
parent b55f969bdc
commit 93a6057c42
2 changed files with 27 additions and 2 deletions

View File

@@ -169,10 +169,9 @@ class Xcode {
assert(sdk != null);
final RunResult runResult = await _processUtils.run(
<String>['xcrun', '--sdk', getNameForSdk(sdk), '--show-sdk-path'],
throwOnError: true,
);
if (runResult.exitCode != 0) {
throwToolExit('Could not find iPhone SDK location: ${runResult.stderr}');
throwToolExit('Could not find SDK location: ${runResult.stderr}');
}
return runResult.stdout.trim();
}