If you are using PhoneGap to create mobile web apps you might have a different Cordova.plist for development and production. A helpful tool to modify the plist file is PListBuddy.
If you for instance want to remove logging for production this would be the command line:
$ /usr/libexec/PlistBuddy -c "Delete
lugins:Logger" Cordova.plist
or you want to set the build version dynamically:
$ /usr/libexec/PlistBuddy -c "Set CFBundleVersion #30" AppName-Info.plist
If you are using Ant the target to set the build number to the Jenkins build:
<target name="setBuildNumber">
<exec executable="/usr/libexec/PlistBuddy">
<arg value="-c"/>
<arg value="Set CFBundleVersion #${env.BUILD_NUMBER}"/>
<arg value="xcode/AppName.plist"/>
</exec>
</target>

Recent Comments