Skip to content

Commit 1bd0b30

Browse files
author
Vladimir Enchev
committed
null/undefined check added
1 parent 221f49d commit 1bd0b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/xcproj-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class XcprojService implements IXcprojService {
3939
let cocoapodVer = this.$sysInfo.getSysInfo(this.$staticConfig.pathToPackageJson).wait().cocoapodVer,
4040
xcodeVersion = this.$xcodeSelectService.getXcodeVersion().wait();
4141

42-
if(!semver.valid(cocoapodVer)) {
42+
if(cocoapodVer && !semver.valid(cocoapodVer)) {
4343
// Cocoapods betas have names like 1.0.0.beta.8
4444
// These 1.0.0 betas are not valid semver versions, but they are working fine with XCode 7.3
4545
// So get only the major.minor.patch version and consider them as 1.0.0

0 commit comments

Comments
 (0)