Skip to content

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

@jmagman

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.

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

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions