File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,22 @@ class DoctorService implements IDoctorService {
45
45
result = true ;
46
46
}
47
47
48
- if ( ! sysInfo . cocoapodVer ) {
48
+ if ( ! sysInfo . cocoapodVer ) {
49
49
this . $logger . warn ( "WARNING: CocoaPod is not installed or is not configured properly." ) ;
50
50
this . $logger . out ( "You will not be able to build your projects for iOS if they contain plugin with CocoaPod file." + EOL
51
51
+ "To be able to build such projects, verify that you have installed CocoaPod." ) ;
52
52
result = true ;
53
53
}
54
54
55
- if ( sysInfo . cocoapodVer && semver . lt ( sysInfo . cocoapodVer , DoctorService . MIN_SUPPORTED_POD_VERSION ) ) {
56
- this . $logger . warn ( `WARNING: CocoaPods version is lower than ${ DoctorService . MIN_SUPPORTED_POD_VERSION } ` ) ;
55
+ if ( sysInfo . cocoapodVer && semver . valid ( sysInfo . cocoapodVer ) === null ) {
56
+ this . $logger . warn ( `WARNING: CocoaPods version is not a valid semver version.` ) ;
57
+ this . $logger . out ( "You will not be able to build your projects for iOS if they contain plugin with CocoaPod file." + EOL
58
+ + `To be able to build such projects, verify that you have at least ${ DoctorService . MIN_SUPPORTED_POD_VERSION } version installed.` ) ;
59
+ result = true ;
60
+ }
61
+
62
+ if ( sysInfo . cocoapodVer && semver . valid ( sysInfo . cocoapodVer ) && semver . lt ( sysInfo . cocoapodVer , DoctorService . MIN_SUPPORTED_POD_VERSION ) ) {
63
+ this . $logger . warn ( `WARNING: CocoaPods version is lower than ${ DoctorService . MIN_SUPPORTED_POD_VERSION } .` ) ;
57
64
this . $logger . out ( "You will not be able to build your projects for iOS if they contain plugin with CocoaPod file." + EOL
58
65
+ `To be able to build such projects, verify that you have at least ${ DoctorService . MIN_SUPPORTED_POD_VERSION } version installed.` ) ;
59
66
result = true ;
You can’t perform that action at this time.
0 commit comments