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

Function doctorIOS

cli/src/ios/doctor.ts:9–27  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

7import { getCommonChecks } from './common';
8
9export async function doctorIOS(config: Config): Promise<void> {
10 // DOCTOR ideas for iOS:
11 // plugin specific warnings
12 // check cocoapods installed
13 // check projects exist
14 // check content in www === ios/www
15 // check CLI versions
16 // check plugins versions
17 // check native project deps are up-to-date === npm install
18 // check if npm install was updated
19 // check online datebase of common errors
20 // check if www folder is empty (index.html does not exist)
21 try {
22 await check([() => checkWebDir(config), checkXcode, ...(await getCommonChecks(config))]);
23 logSuccess('iOS looking great! 👌');
24 } catch (e: any) {
25 fatal(e.stack ?? e);
26 }
27}
28
29async function checkXcode() {
30 if (!(await isInstalled('xcodebuild'))) {

Callers 1

doctorFunction · 0.90

Calls 5

checkFunction · 0.90
checkWebDirFunction · 0.90
getCommonChecksFunction · 0.90
logSuccessFunction · 0.90
fatalFunction · 0.90

Tested by

no test coverage detected