Xcode 7.2的离子应用程序的构建设置保持得到重置 [英] Xcode 7.2 build settings for ionic app keep getting reset

查看:169
本文介绍了Xcode 7.2的离子应用程序的构建设置保持得到重置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用cordova和离子建立一个混合应用程序。我有应用程序上传到应用商店,这是伟大的内部测试。我有的问题是,构建设置不断变得重置,所以我必须去回顾以前的版本增加版本号等等...有什么办法来获得构建设置坚持吗?下面的图片是我指的是,如果我关闭xcode并重新打开会重置的构建设置。

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.

推荐答案

您必须在config.xml中设置此值。要设置版本和内部版本号,请使用:

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>

有关更多信息,请参阅文档: http://cordova.apache.org/docs/en/dev/config_ref/index.html

See the doc for more infos: http://cordova.apache.org/docs/en/dev/config_ref/index.html

这篇关于Xcode 7.2的离子应用程序的构建设置保持得到重置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆