diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ce2576..f948e4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/main/java/com/teamscale/upload/xcode/XcodeVersion.java b/src/main/java/com/teamscale/upload/xcode/XcodeVersion.java index e04566f..6b9c6d8 100644 --- a/src/main/java/com/teamscale/upload/xcode/XcodeVersion.java +++ b/src/main/java/com/teamscale/upload/xcode/XcodeVersion.java @@ -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); }