Skip to content

xcresulttool get object is deprecated in Xcode 16, replace with xcresulttool get test-results #151502

Closed

Description

@jmagman

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

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

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    team-iosOwned by iOS platform team
    triaged-iosTriaged by iOS platform team
    on Jul 9, 2024
  2. added
    t: xcode"xcodebuild" on iOS and general Xcode project management
    on Jul 9, 2024
  3. flutter-triage-bot commented on Jul 10, 2024

    @flutter-triage-bot

    This issue is missing a priority label. Please set a priority label when adding the triaged-ios label.

  4. added
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Jul 10, 2024
  5. jmagman commented on Jul 10, 2024

    @jmagman
    MemberAuthor

    The XCResultGenerator parser 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 (detect test-results doesn't exist and fallback to the old parsing).

  6. 2 remaining items

  7. jmagman commented on Jun 10, 2025

    @jmagman
    MemberAuthor

    Looks like the --legacy flag #152988 is still working in Xcode 26 beta 1. We should do this sooner rather than later though.

  8. self-assigned this
    on Jul 22, 2025
  9. added a commit that references this issue on Jul 23, 2025
    fdc1b5c
  10. added a commit that references this issue on Jul 28, 2025
    08a2a2e
  11. github-actions commented on Aug 7, 2025

    @github-actions

    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 -v and a minimal reproduction of the issue.

  12. locked as resolved and limited conversation to collaborators on Aug 7, 2025
  13. added a commit that references this issue on Aug 19, 2025
    e50a027
  14. added a commit that references this issue on Sep 18, 2025
    2582938
  15. added a commit that references this issue on Sep 22, 2025
    2fe6cab
  16. added a commit that references this issue on Nov 21, 2025
    1d2a67b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listt: xcode"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions