Skip to content

Fix to parse xcresulttool version when the version string has major.minor format #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.
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.

1 participant