Repository navigation
xcresulttool get object is deprecated in Xcode 16, replace with xcresulttool get test-results #151502
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
During a verbose Flutter iOS build on Xcode 16 beta 3 I see:
/usr/bin/arch -arm64e xcrun xcresulttool get --path /var/folders/fm/wjzsj_z95ydgn4khxqgbtqx000mfq2/T/flutter_tools.PkqAFW/flutter_ios_build_temp_dirFAy4yP/temporary_xcresult_bundle --format json
[ +856 ms] Error: This command is deprecated and will be removed in a future release, --legacy flag is required to use it.
Usage: xcresulttool get object [--legacy] --path <path> [--id <id>] [--version <version>] [--format <format>]
See 'xcresulttool get object --help' for more information.
Introduced in #92604 to get the Xcode build failure data
flutter/packages/flutter_tools/lib/src/ios/xcresult.dart
Lines 47 to 53 in a99042e
| ...xcode.xcrunCommand(), | |
| 'xcresulttool', | |
| 'get', | |
| '--path', | |
| resultPath, | |
| '--format', | |
| 'json', |
$ 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.
xcresulttool get test-report doesn't exist, I assume it's a typo for test-results:
OVERVIEW: Get test results data.
USAGE: xcresulttool get test-results <subcommand>
OPTIONS:
--version Show the version.
-h, --help Show help information.
SUBCOMMANDS:
summary Get test report summary.
tests Get all tests from test report.
test-details Get detailed information about the test.
activities Get the activity trees for the specified test. If the test has more than one run, the activity trees for each run will be included.
insights Get test report insights.
See 'xcresulttool help get test-results <subcommand>' for detailed help.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Type
Projects
- StatusShow more project fieldsDone
Activity
flutter-triage-bot commentedon Jul 10, 2024
This issue is missing a priority label. Please set a priority label when adding the
triaged-ioslabel.jmagman commentedon Jul 10, 2024
The
XCResultGeneratorparser will likely need to be changed based on the new output format, see #92604. The solution should work on both Xcode 14 as well as Xcode 16 beta 3 (detecttest-resultsdoesn't exist and fallback to the old parsing).Add xcresulttool --legacy flag for deprecated usage (#152988)
Add xcresulttool --legacy flag for deprecated usage (flutter#152988)
Add xcresulttool --legacy flag for deprecated usage (flutter#152988)
2 remaining items
jmagman commentedon Jun 10, 2025
Looks like the
--legacyflag #152988 is still working in Xcode 26 beta 1. We should do this sooner rather than later though.Adapt xcresult parser for Xcode 16 changes (#172596)
Adapt xcresult parser for Xcode 16 changes (flutter#172596)
github-actions commentedon Aug 7, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Adapt xcresult parser for Xcode 16 changes (flutter#172596)
Adapt xcresult parser for Xcode 16 changes (flutter#172596)
Adapt xcresult parser for Xcode 16 changes (flutter#172596)
Adapt xcresult parser for Xcode 16 changes (flutter#172596)