(config: Config)
| 7 | import { getCommonChecks } from './common'; |
| 8 | |
| 9 | export 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 | |
| 29 | async function checkXcode() { |
| 30 | if (!(await isInstalled('xcodebuild'))) { |
no test coverage detected