fix(types): IOSScriptPhase accepts "always_out_of_date" #2182
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
This is useful to quiet the
pod install
warning:"Run script build phase '<script phase name>' will be run during every build because..."
It already exists and works (parses correctly, is carried correctly through native_modules.rb, pod install consumes it and behaves correctly) as an attribute in the type - this just exposes it
ref https://www.rubydoc.info/gems/cocoapods-core/Pod/Podfile/DSL#script_phase-instance_method
I took the opportunity to move the dependency_file attr below execution_phase, so now the order of attributes matches upstream reference documentation order
Test Plan:
react-native-firebase has two script phases that depend on inputs but can't specify output because it would duplicate the output. The scripts themselves are idempotent so it is okay if they re-run but not okay if they never run, so just run them every time is the answer, but it would be nice not to have the xcodebuild warning about it running every time. This parameter of the script phase is how to do it
You may inspect the results of running with the currently-undocumented-but-functional attribute here: https://github.com/invertase/react-native-firebase/pull/7472/files#diff-7db2a7cda2dc850e1750fbcc3a31937233711ab4d154f3594e47673de404a6cc
Checklist