@@ -20,6 +20,7 @@ class DoctorService implements IDoctorService {
20
20
private $hostInfo : IHostInfo ,
21
21
private $logger : ILogger ,
22
22
private $progressIndicator : IProgressIndicator ,
23
+ private $staticConfig : IStaticConfig ,
23
24
private $sysInfo : ISysInfo ,
24
25
private $childProcess : IChildProcess ,
25
26
private $config : IConfiguration ,
@@ -32,7 +33,7 @@ class DoctorService implements IDoctorService {
32
33
public printWarnings ( configOptions ?: { trackResult : boolean } ) : IFuture < boolean > {
33
34
return ( ( ) => {
34
35
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 ( ) ;
36
37
37
38
if ( ! sysInfo . adbVer ) {
38
39
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 {
64
65
result = true ;
65
66
}
66
67
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
+
67
75
if ( ! sysInfo . cocoapodVer ) {
68
76
this . $logger . warn ( "WARNING: CocoaPods is not installed or is not configured properly." ) ;
69
77
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