Hey everyone,
I have an app that I am wanting to upload to the App Store. As part of the plist that my app uses, I am wanting to define the "CFBundleShortVersionString" property using macros, which are defined in a C++ header and are included in the plist as a prefix header (using the INFOPLIST_PREFIX_HEADER plist param).
https://ilya.puchka.me/info-plist-preprocessing/ (example usage)
C++ header:
#define MAJOR_VERSION 23
#define MINOR_VERSION 0
plist:
<key>CFBundleShortVersionString</key>
<string>MAJOR_VERSION.MINOR_VERSION</string>
There are some rules that you have to follow when providing a value for the CFBundleShortVersionString property, and one of them is that it cannot contain any spaces. However, when Xcode generates the value for the CFBundleShortVersionString property using my provided macros; it auto generates a space between the macros and the full stop I manually added to the plist: "23 . 0"
Does anyone know if there is any way to prevent a space from being added, for example an option that you can pass to the plist preprocessor?
Thanks :)