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 preActions
and postActions
to RunAction
and ProfileAction
#3787
Conversation
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.
Thanks for submitting this @hisaac
I believe the missing connection is updating the SchemeDescriptorGenerator
which is responsible for generating the Xcode schemes (descriptors).
Thank you @kwridan! I'll take a look there and see if I can sort it out. |
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.
This is awesome @hisaac π π π π
Fix tests Undo some unnecessary refactoring Revert changes to AnalyzeAction Refactor for code style
0aceac4
to
a050f51
Compare
This should be ready for final review now. I've tested the changes on one of my projects, and have confirmed that it's working. |
preActions
and postActions
to RunAction
and ProfileAction
preActions
and postActions
to RunAction
and ProfileAction
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.
Thanks for contributing this and bringing consistency to the schemes APIs @hisaac π
I've also tested locally with the ios_app_with_custom_scheme
fixture
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.
Thanks for the contribution π
This PR was generated from a question in the Tuist Slack here: https://tuistapp.slack.com/archives/CTB0DBVD2/p1638098676119800
Short description π
In one of my projects, I use a custom pre-action on one of my scheme's Run action. When attempting to migrate said project to Tuist, I noticed that Tuist does not support adding pre-actions or post-actions to
RunAction
, as well asProfileAction
andAnalyzeAction
.This PR is to add pre-actions and post-actions to
RunAction
andProfileAction
. (I learned while working on this that Xcode does not support pre-actions and post-actions on Analyze actions, so I'm leaving that one as-is.)Checklist β
CHANGELOG.md
has been updated to reflect the changes. In case of a breaking change, it's been flagged as such.TuistGraph.Target
, theConstants.cacheVersion
has been updated.