Skip to content

Conversation

@sumanc
Copy link

@sumanc sumanc commented Jul 11, 2025

When testing Xcode 26 beta 2, when xcrun xcresulttool version is executed, the output comes in as "xcresulttool version 24038.1, schema version: 0.0.0 (legacy commands format version: 3.53)".

We depend on xcparse to extract the logs from the xcreult file and we needed a fix for it.

Change Description:
xcresulttool() function is failing to create the Version instance because of the unexpected format. As a result, --legacy flag is not getting added causing the parser to fail.

Fix is, when the version parsing fails, get the major version from version string and drop the minor version

Test Plan/Testing Performed:
Installed xcparse with these changes, and tested with Xcode 16.4, Xcode 26 beta-2 and beta-3 versions an observed that the .xcresult file is successfully parsed in all versions.

…inor format

When testing Xcode 26 beta 2, when `xcrun xcresulttool version` is executed, the output comes in as "xcresulttool version 24038.1, schema version: 0.0.0 (legacy commands format version: 3.53)".

xcresulttool() function is failing to create teh Version instance because of the unexpected format. As a result, --legacy flag is not getting added causing the parser to fail.

Fix is to get the major version from version string.

Tested with Xcode 26 beta 2 and beta 3 versions.
@triplef
Copy link

triplef commented Jul 29, 2025

I’m running into the same issue with Xcode 26 beta 4. Would be great to see this merged @rsukumar-cpi. 🙏

Fixes #91.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants