Closed Plamen5kov closed 7 years ago
This code will not fix the mentioned issue, it will just fail with different error when executing tns doctor
.
By definition tns doctor
should detect all issues and print them, it should not fail and stop execution once a single issue is detected.
@Plamen5kov am I missing something here, maybe there's another PR in {N} CLI that would fix the doctor
failure?
@rosen-vladimirov I thought failing was the expected behavior, my bad. I'll fix it in another PR.
@Plamen5kov the failure in the current code (changed in this PR) is fine IMO. But tns doctor
should catch this error and show warning or something like this. Or even - tns doctor
should not get here in case we already know Xcode is not installed.
Yes, my plan was to add a check to tns doctor
on the expected default tools on mac, just like we do here. Will fix as soon as I get the time
problem related issue: https://github.com/NativeScript/nativescript-cli/issues/2810
getxcodeversion
returning null isn't handled correctly intns doctor
solution handle erroneous case and remove unnecessary code