I'm building a hybrid app with cordova and ionic. I've got the app uploading to the app store which is great for internal testing. The issue I have is that the build settings keep becoming reset, so I have to go look back at the previous build to increment the build number, etc... Is there any way to get the build settings to stick? The image below is the build settings I'm referring to that will become reset if I close xcode and reopen.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You have to set this values in your config.xml. To set the version and build number, use:
<widget xmlns="http://www.w3.org/ns/widgets" id="com.example.test" version="1.0" android-versionCode="2" ios-CFBundleVersion="2">
And to set the orientation, use this setting:
<platform name="ios">
<preference name="Orientation" value="all" />
</platform>
See the doc for more infos: http://cordova.apache.org/docs/en/dev/config_ref/index.html