Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to React Native 0.64.x #1641

Merged
merged 11 commits into from
Apr 10, 2021
Merged
Prev Previous commit
Next Next commit
Improved scenario when cocoapods is not installed
  • Loading branch information
nsoderstromgmp committed Aug 22, 2019
commit 76fe8b4fb89968f72aad85b539a2834992773f6e
5 changes: 2 additions & 3 deletions src/commands/doctor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ module.exports = {
info(colors.cyan('iOS'))
table([[column1('xcode'), column2(xcodeVersion)]])

const cocoaPodsPath = which('pod')
const cocoaPodsVersion = await run('pod --version', { trim: true })

const cocoaPodsPath = which('pod') || ''
const cocoaPodsVersion = cocoaPodsPath ? await run('pod --version', { trim: true }) : 'Not installed'
table([[column1('cocoapods'), column2(cocoaPodsVersion), column3(cocoaPodsPath)]])
}

Expand Down