Ios PhoneGap Build Config.xml BundleVersion

Ios PhoneGap Build Config.xml BundleVersion,ios,xml,xcode,phonegap-build,ipa,Ios,Xml,Xcode,Phonegap Build,Ipa,我正在尝试在PhoneGap build上创建我的JS应用程序的新版本,但我在iOS BundleVersion和BundleShortVersionString上遇到了问题 系统以前在PhoneGap设置中使用“version”字段为我执行此操作,但由于我添加了一个config.xml文件来添加spash图像和图标,因此它不再创建版本,所以XCode不接受我的.ipa文件 这是我当前在.xml文件中的内容: <?xml version="1.15" encoding="UTF-8" ?&

我正在尝试在PhoneGap build上创建我的JS应用程序的新版本,但我在iOS BundleVersion和BundleShortVersionString上遇到了问题

系统以前在PhoneGap设置中使用“version”字段为我执行此操作,但由于我添加了一个config.xml文件来添加spash图像和图标,因此它不再创建版本,所以XCode不接受我的.ipa文件

这是我当前在.xml文件中的内容:

<?xml version="1.15" encoding="UTF-8" ?>
<widget version="1.15" ios-CFBundleVersion="1.15" ios-CFBundleShortVersionString="1.15">

<!-- versionCode is optional and Android only -->

<name>App Name</name>

<description>
    My App decription. 
</description>

<author href="http://website.com" email="email@example.com">
    Author. 
</author>

<preference name="target-device" value="handset" />

<platform name="ios">
          <!-- iOS 8.0+ -->
          <!-- iPhone 6 Plus  -->
          <icon src="icons/_mark-152x152.png" width="152" height="152" />
          <!-- iOS 7.0+ -->
          <!-- iPhone / iPod Touch  -->
          <icon src="icons/_mark-152x152" width="120" height="120" />
          <!-- iPad -->
          <icon src="icons/_mark-152x152" width="76" height="76" />
 </platform>
<platform name="android">
          <!-- iOS 8.0+ -->
          <!-- iPhone 6 Plus  -->
          <icon src="icons/_mark-152x152.png" width="152" height="152" />
          <!-- iOS 7.0+ -->
          <!-- iPhone / iPod Touch  -->
          <icon src="icons/_mark-152x152" width="120" height="120" />
          <!-- iPad -->
          <icon src="icons/_mark-152x152" width="76" height="76" />
 </platform>

应用程序名称
我的应用程序说明。
作者

这是我在谷歌上找到的解决方案,但它不起作用。。。另外,解包.ipa并手动修改也不起作用,它会被XCode退回。此外,我的config.xml文件工作正常,除了此之外,它当前位于我的应用程序文件夹的索引中,与index.html处于同一级别

还有别的办法吗?

@Sebastian, 这个问题在Phonegap构建的官方论坛上被多次回答

答案是,将以下内容添加到
config.xml

<gap:config-file platform="ios" parent="CFBundleShortVersionString">
    <string>101</string>
</gap:config-file>

101
将编号
101
替换为您的版本号

您需要的文档位于->配置->->

这里有两(2)条关于这个主题的线索

-11天前

-1年前