-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add --legacy flag, for compatibility with Xcode 16 #3
Conversation
…xcode-16 Add `--legacy` flag, for compatibility with Xcode 16
@jozefizso - this is my first attempt at Typescript - I welcome any testing pointers. |
Does anyone what the non-deprecated alternative is for this command? xcrun xcresulttool -h
xcrun xcresulttool get -h
For It also tells you to "consider However, xcrun xcresulttool get test-report -h
This command is deprecated as well.... it appears to be an alias for get object, which is also mentioned in the usage? All in all it's super confusing and unclear what the undeprecated way is. |
Relevant topic: https://forums.developer.apple.com/forums/thread/763050 Looks like |
Hello, we are sorry we missed this pull request. I will take a look at it as we are at the transition to Xcode 16. |
if (match) { | ||
return parseInt(match[1], 10); | ||
} | ||
throw new Error('Unable to determine Xcode version'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer the script to continue working if it cannot determine the Xcode version instead of bailing out.
.concat(inputPaths) | ||
.concat(['--output-path', outputPath]) | ||
|
||
if (xcodeVersion >= 16) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add the --legacy
only if the Xcode is exactly 16. Later releases may not have this flag:
Error: This command is deprecated and will be removed in a future release, --legacy flag is required to use it.
.concat(inputPaths) | ||
.concat(['--output-path', outputPath]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, use the same code style as is in the whole project.
Hi @gemmakbarlow, I have some feedback for the PR:
|
All very valid, thank-you for the feedback. I hope to get some time to address those comments later in the week. If you need to proceed with another approach in the interim, please go ahead, as I'm a little swamped at the moment. |
I am closing this PR as the fix was implemented in #10 |
Release is ready: https://github.com/slidoapp/xcresulttool/releases/tag/v3.1.0 |
Some related discussion can be seen here - fastlane/fastlane#22132