Skip to content

Commit

Permalink
TS-40724 Added changelog and minor code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Klein committed Nov 12, 2024
1 parent 141393e commit 426f9d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ We use [semantic versioning](http://semver.org/):
- PATCH version when you make backwards compatible bug fixes.

# Next Release
- ...
- [fix] Uploading `.xcresult` files was not possible when using Xcode version 16

# 2.9.3
- [fix] Using the `--insecure` flag now skips loading any custom certificates from OS trust stores
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/teamscale/upload/xcode/XcodeVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ public static XcodeVersion determine() {
}

String xcodeBuildVersionCommandOutput = result.output;
Matcher m = XCODE_BUILD_VERSION_PATTERN.matcher(xcodeBuildVersionCommandOutput);
if (!m.find()) {
Matcher xcodeVersionPatternMatcher = XCODE_BUILD_VERSION_PATTERN.matcher(xcodeBuildVersionCommandOutput);
if (!xcodeVersionPatternMatcher.find()) {
LogUtils.warn("Could not determine installed Xcode version. Assuming latest Xcode version is installed.");
LogUtils.debug("Output of 'xcodebuild -version' command:\n" + xcodeBuildVersionCommandOutput);
return latestVersion();
}

int major = Integer.parseInt(m.group("major"));
int minor = Integer.parseInt(m.group("minor"));
int major = Integer.parseInt(xcodeVersionPatternMatcher.group("major"));
int minor = Integer.parseInt(xcodeVersionPatternMatcher.group("minor"));
return new XcodeVersion(major, minor);
}

Expand Down

0 comments on commit 426f9d8

Please sign in to comment.