With this step we replace the values of MARKETING_VERSION and CURRENT_PROJECT_VERSION in the project.pbxproj file. The project.pbxproj file is located in your .xcodeproj file.
Reference it in your bitrise.yml
with the git::PUBLIC-GIT-CLONE-URL@BRANCH
step reference style:
- git::https://github.com/Macjon/bitrise-step-set-ios-version.git@main:
inputs:
- bundle_version: "The bundle version"
- bundle_version_short: "The short bundle version"
- pbxproj_path: "Path to {Project name}/project.pbxproj"
You can share your Step or step version with the bitrise CLI. If you use the bitrise.yml
included in this repository, all you have to do is:
- In your Terminal / Command Line
cd
into this directory (where thebitrise.yml
of the step is located) - Run:
bitrise run test
to test the step - Run:
bitrise run audit-this-step
to audit thestep.yml
- Check the
share-this-step
workflow in thebitrise.yml
, and fill out theenvs
if you haven't done so already (don't forget to bump the version number if this is an update of your step!) - Then run:
bitrise run share-this-step
to share the step (version) you specified in theenvs
- Send the Pull Request, as described in the logs of
bitrise run share-this-step
That's all ;)