bitrise-steplib / steps-set-xcode-build-number

Sets the Build Number to the specified value in the Info.plist file for the next build
MIT License
7 stars 10 forks source link

[CI-2872] Add more logging #45

Closed tothszabi closed 6 months ago

tothszabi commented 6 months ago

Checklist

Version

Requires a PATCH version update

Context

There was a recent SWAT ticket where this step worked differently than the customers bash script. Upon further investigation I think the step was configured differently that the bash script and that caused the version numbers not being updated.

I have included some extra logs to help debug future issues.

Changes

There is a new verbose input which will make the step print more useful logs for debugging. The new debug logs will look like this:

Updating build settings for the Example target
CURRENT_PROJECT_VERSION 1 -> 9999
MARKETING_VERSION 1.0 -> 9.99.9

and

Updating Info.plist at /Users/szabi/Dev/bitrise-steplib/steps-set-xcode-build-number/testdata/project/Example/Example/Example-Static-Info.plist
CFBundleVersion 19876 -> 9999
CFBundleShortVersionString 12.5.5 -> 9.99.9

So it will print out which target or info.plist path is being updated and also it will print the old values too.