Reputation: 1113
I have enabled Preprocessing of Info.plist in the Xcode build settings, to replace the key representing the version number in CFBundleVersion with the corresponding value in a version.h. This works great: VERSION_NUMBER is replaces with 1.0 for the corresponding #define VERSION_NUMBER 1.0 in version.h. I would like to do the same in Root.plist, where the plist is updated when placed into the .app/.ipa.
Right now I have a script to automatically update Root.plist on each compile, but that updates the actual Root.plist, meaning I will have to resubmit to version control, etc. I want to generate a Root.plist in the compiled app, but not touch the "real" plist.
Any help would be appreciated. Thanks!
Upvotes: 1
Views: 868
Reputation: 13192
As far as I know the only way to do it is from build time scripts as you do. You can work around the version control issues by the following trick:
Upvotes: 1