Since Xcode 13, there is no Info.plist
by default. Instead, the common field are in the target’s Info tab, and build settings in the project editor. A separated Info.plist
file is added to project only when there are additional fields.
When I run the following command to set MARKETING_VERSION on Jenkins
$ xcrun agvtool new-marketing-version 1.0.0
It doesn't have any effect on Info.plist
file unless the key CFBundleShortVersionString
exists. But every time I update field in target's Info tab, the Info.plist
file seems to be regenerated again and CFBundleShortVersionString
disappear.
Therefore, I'm wondering is there any suggestion about how to setting MARKETING_VERSION
via command line or how to use agvtool in this case. Any suggestion would be appreciated!