With Xcode 16.0 beta 3+ part of xcresulttool API that we use to parse Xcode test results has been deprecated:
% xcrun xcresulttool get object --help
OVERVIEW: Get Result Bundle Object. This subcommand is deprecated and will be removed in a future release, consider using `xcresulttool get test-report` instead.
USAGE: xcresulttool get object [--legacy] --path <path> [--id <id>] [--version <version>] [--format <format>]
...
This causes xcresulttool get object calls with recent Xcode versions to exit with error and consequently some actions in xcode-project fail.
Apple has provided a quick workaround by providing --legacy flag that can be used to still use the old API even on more recent xcresulttool version. Changes on this PR make use of that flag when calling xcresulttool get object in case xcresulttool version is at least 23021.
Updated actions:
xcode-project run-tests
xcode-project test-summary
xcode-project junit-test-results
QA notes
Test are running and results can be successfully parsed using the following Xcode versions:
With Xcode 16.0 beta 3+ part of
xcresulttool
API that we use to parse Xcode test results has been deprecated:This causes
xcresulttool get object
calls with recent Xcode versions to exit with error and consequently some actions inxcode-project
fail.Apple has provided a quick workaround by providing
--legacy
flag that can be used to still use the old API even on more recentxcresulttool
version. Changes on this PR make use of that flag when callingxcresulttool get object
in casexcresulttool
version is at least23021
.Updated actions:
xcode-project run-tests
xcode-project test-summary
xcode-project junit-test-results
QA notes
Test are running and results can be successfully parsed using the following Xcode versions: