Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: This command is deprecated and will be removed in a future release, --legacy flag is required to use it #65

Open
vakhidbetrakhmadov opened this issue Jan 6, 2025 · 1 comment · May be fixed by #66

Comments

@vakhidbetrakhmadov
Copy link

I observe the following error in the logs when running a test target with Xcode 16

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.

The error originates from here

'xcrun', 'xcresulttool', 'get', '--format', 'json', '--path',

I can reproduce the error by manually running

$ xcrun xcresulttool get --format json --path 'path/to/test.xcresult'

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.

and the same for xcrun xcresulttool export ...

As the error message suggests, adding --legacy flag resolves the error

$ xcrun xcresulttool get --legacy --format json --path '/Users/vakhid.betrakhmadov/Downloads/outputs/test.xcresult'

{
  "_type" : {
    "_name" : "ActionsInvocationRecord"
  },
  ...
}
vakhidbetrakhmadov pushed a commit to vakhidbetrakhmadov/xctestrunner that referenced this issue Jan 6, 2025
@vakhidbetrakhmadov vakhidbetrakhmadov linked a pull request Jan 6, 2025 that will close this issue
vakhidbetrakhmadov pushed a commit to vakhidbetrakhmadov/xctestrunner that referenced this issue Jan 6, 2025
@vakhidbetrakhmadov
Copy link
Author

Opened a PR with a fix: #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant