@@ -20,6 +20,7 @@ class DoctorService implements IDoctorService {
2020 private $hostInfo : IHostInfo ,
2121 private $logger : ILogger ,
2222 private $progressIndicator : IProgressIndicator ,
23+ private $staticConfig : IStaticConfig ,
2324 private $sysInfo : ISysInfo ,
2425 private $childProcess : IChildProcess ,
2526 private $config : IConfiguration ,
@@ -32,7 +33,7 @@ class DoctorService implements IDoctorService {
3233 public printWarnings ( configOptions ?: { trackResult : boolean } ) : IFuture < boolean > {
3334 return ( ( ) => {
3435 let result = false ;
35- let sysInfo = this . $sysInfo . getSysInfo ( path . join ( __dirname , ".." , ".." , "package.json" ) ) . wait ( ) ;
36+ let sysInfo = this . $sysInfo . getSysInfo ( this . $staticConfig . pathToPackageJson ) . wait ( ) ;
3637
3738 if ( ! sysInfo . adbVer ) {
3839 this . $logger . warn ( "WARNING: adb from the Android SDK is not installed or is not configured properly." ) ;
@@ -64,6 +65,13 @@ class DoctorService implements IDoctorService {
6465 result = true ;
6566 }
6667
68+ if ( ! sysInfo . xcodeprojGemLocation ) {
69+ this . $logger . warn ( "WARNING: xcodeproj gem is not installed or is not configured properly." ) ;
70+ this . $logger . out ( "You will not be able to build your projects for iOS." + EOL
71+ + "To be able to build for iOS and run apps in the native emulator, verify that you have installed xcodeproj." + EOL ) ;
72+ result = true ;
73+ }
74+
6775 if ( ! sysInfo . cocoapodVer ) {
6876 this . $logger . warn ( "WARNING: CocoaPods is not installed or is not configured properly." ) ;
6977 this . $logger . out ( "You will not be able to build your projects for iOS if they contain plugin with CocoaPod file." + EOL
0 commit comments