Skip to content

[BUG] It errors out on Xcode 16 #87

Description

@marinofelipe

Describe the bug

The xcresulttool version that comes bundled with Xcode 16 deprecates the commands currently used, such as xcresulttool get object, and introduces new ones.

For it to work normally, without changing to use the new commands, it requires the --legacy argument to be passed when calling deprecated methods, otherwise it errors out, for example

mint run xcparse screenshots my_repo/someTarget.xcresult my_repo/output_dir

fails with

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

Desktop (please complete the following information):

  • OS: macOS 14.6.1 (23G93)
  • xcparse Version: 2.3.1 (latest)
  • Swift version: 6.0 (the default when using Xcode's 16(.1) toolchain)
  • XCResult version
"version" : {
   "major" : 3,
   "minor" : 53
 }

To Reproduce
use xcparse with Xcode 16 as the selected toolchain (i.e. via xcode-select -s)

Expected behavior
It should not error out

Additional context
I've a fork with a simple fix for it, let me know if I should move a PR with it, which I would have to ask a few follow up questions before opening it

Here's an example of a similar issue opened and addressed by the fastlane community: fastlane/fastlane#22132

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions