$MARKETING_VERSION wrongly returned by Xcode Project Info step

xcode
ios
#1

Bitrise Build Issue Report template

Description of the issue

  • I added Xcode Project Info step
  • XPI_VERSION returns $MARKETING_VERSION in place of the actual app version

Environment:

Last available stack Xcode 11.2.x

Which build Step causes the issue and which version of the step?

Xcode Project Info 2.0.0

Reproducibility

Always

0 Likes

#2

Hello,

Do we have any update on this ?
Bug is still reproducible

0 Likes

#3

This is affecting us too. An update on progress for a fix would be greatly appreciated.

0 Likes

#4

You guys can use a different script:

#!/bin/bash
projectFilePath=$BITRISE_SOURCE_DIR/YourProjectPath/project.pbxproj
version_number=`sed -n '/MARKETING_VERSION/{s/MARKETING_VERSION = //;s/;//;s/^[[:space:]]*//;p;q;}' $projectFilePath`
envman add --key MARKETING_VERSION_REVISED --value $version_number

Then you can use $MARKETING_VERSION_REVISED in the next workflow steps.

0 Likes