Generate entitlements as a build step #249
Draft
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.
What changes are you making?
Following #239 work to add a script to generate the entitlements file, this PR aims to add a build phase step to automate the process.
Status
This is currently sat in draft whilst I consider how to fix an issue, the script runs after the files are analysed in the prior build step, meaning that if the file doesn't exist it will fail the build, we want to generate prior to this or leave a stubbed file there, without git tracking being an issue during development.
How to test
If you run the following commands from the root of the repo first
Then kick off a build in xcode - you should observe that the build succeeds
Things to note that should be present, the first run you should see something similar to:
Subsequent builds will indicate the fact it doesn't regenerate the file
Before you merge
Important
Checklist for releasing a new version
podspec
file.Tip
See the Contributing documentation for instructions on how to publish a new version of the library.