How to read current app version in Xcode 11 with script

前端 未结 9 1774
野趣味
野趣味 2020-12-14 00:38

Until Xcode 11, I used a script that reads the current app version (for the AppStore) and help me change the LaunchScreen since we can\'t use swift for that

9条回答
  •  半阙折子戏
    2020-12-14 01:22

    I miss here a solution for multiple targets and configurations:

    xcodebuild -target  -configuration  -showBuildSettings  | grep -i 'MARKETING_VERSION' | sed 's/[ ]*MARKETING_VERSION = //'
    
    • target: the name of the target
    • configuration: Release, Debug

提交回复
热议问题