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

Xcode 16 beta 3 tests fail as xcresulttool get object is deprecated #39

Closed
mikehouse opened this issue Jul 9, 2024 · 10 comments
Closed

Comments

@mikehouse
Copy link

Hi.
The issue the same as here fastlane/fastlane#22132

These commands are okay

~ xcodebuild -version
Xcode 15.4
Build version 15F31d

~ ./scripts/xcresultparser -o cli /fastlane/test_output/Test-MyApp-2024.07.09_14-57-50-339029-+0700.xcresult

These commands are not okay

~ xcodebuild -version
Xcode 16.0
Build version 16A5202i

~ ./scripts/xcresultparser -o cli /fastlane/test_output/Test-MyApp-2024.07.09_14-57-50-339029-+0700.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.
Error: argumentError

Thanks for awesome tool, we use it every day on our CI pipelines.

@a7ex
Copy link
Owner

a7ex commented Jul 9, 2024

Thanks for the heads up. I will look into asap.

@mangerlahn
Copy link

The issue is with XCResultKit actually. It calls xcrun xcresulttool get/export, which are deprecated with xcresulttool shipped in Xcode 16 beta 3.

@a7ex
Copy link
Owner

a7ex commented Jul 10, 2024

I know. But I will need to investigate, whether I can use xcresultkit in another way or at least give the xcresulttool developers a heads up. Or even consider to ditch xcresulttool...

@mangerlahn
Copy link

I have prepared a pull request that adds a temporary workaround: davidahouse/XCResultKit#52

The old/existing commands on xcresulttool will continue to work if a —legacy option is added.

@Brett-Best
Copy link
Collaborator

It's rather annoying that Apple didn't provide an environment variable option.
Some of the new commands looks like we could use however seems to be missing a way to get the warnings from the report unfortunately.

@Brett-Best
Copy link
Collaborator

@a7ex davidahouse/XCResultKit#52 is merged now, would we be able to bump the package to use it?

@a7ex
Copy link
Owner

a7ex commented Jul 23, 2024 via email

@a7ex
Copy link
Owner

a7ex commented Jul 23, 2024 via email

@Brett-Best
Copy link
Collaborator

All good, I've made #40 which I'll update when a tag is made 😄

Yeah, I think the test summary part looks okay?
But getting compile warnings/errors doesn't look okay so probably should raise a feedback with Apple about that removed functionality which I find really useful 😢

@a7ex
Copy link
Owner

a7ex commented Jul 25, 2024

Thank you Brett. I have a few refactoring for Swift 6 compatibility as well. I will add them also to the "Xcode 16 compatibility release" :-)

@a7ex a7ex closed this as completed Jul 31, 2024
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

No branches or pull requests

4 participants