MCPcopy
hub / github.com/ionic-team/capacitor / checkXcode

Function checkXcode

cli/src/ios/doctor.ts:29–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29async function checkXcode() {
30 if (!(await isInstalled('xcodebuild'))) {
31 return `Xcode is not installed`;
32 }
33 // const matches = output.match(/^Xcode (.*)/);
34 // if (matches && matches.length === 2) {
35 // const minVersion = '9.0.0';
36 // const semver = await import('semver');
37 // console.log(matches[1]);
38 // if (semver.gt(minVersion, matches[1])) {
39 // return `Xcode version is too old, ${minVersion} is required`;
40 // }
41 // }
42 return null;
43}

Callers

nothing calls this directly

Calls 1

isInstalledFunction · 0.90

Tested by

no test coverage detected