Software Archive
Read-only legacy content
17061 Discussions

Cordova build version

hsdk_k_
Beginner
397 Views

Hi, I've set in my build settings to use Cordova 4.1.2, but my ios build log tells me that I'm building with Cordova 3.3 - what is going wrong? 

I attach screenshots of my build log and build settings

 

0 Kudos
3 Replies
PaulF_IntelCorp
Employee
397 Views

In your project directory there is a file named intelxdk.config.ios.xml. That is the "build file" that sends instructions to the build server. Here's an example of one for a sample app that I was playing with:

<?xml version='1.0' encoding='UTF-8'?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:intelxdk="http://xdk.intel.com/ns/v1" id="demo.PixiSpine" version="0.0.1">
<!--This file is generated by the Intel XDK. Do not edit this file as your edits will be lost.           -->
<!--To change the contents of this file, see the documentation on the intelxdk.config.additions.xml file.-->
<intelxdk:version value="1.0"/>
<intelxdk:cordova-cli version="4.1.2"/>
<name>test-crosswalk-options-pixi</name>
<description>A game sample built using Pixi.js that teaches developer to use Spine animation</description>
<author>Intel XDK</author>
<content src="index.html"/>
<access origin="*"/>
<intelxdk:plugin intelxdk:name="Device" intelxdk:value="org.apache.cordova.device" intelxdk:version="0.2.13"/>
<intelxdk:plugin intelxdk:name="SplashScreen" intelxdk:value="org.apache.cordova.splashscreen" intelxdk:version="0.3.5"/>
<preference name="ios-target" value="6"/>
<preference name="ios-configuration" value="adhoc"/>
<preference name="Fullscreen" value="true"/>
<preference name="Orientation" value="landscape"/>
<!--creationInfo:{"src":"https://appcenter.html5tools-software.intel.com/api/v2.0/redirect/projectrenderers/release-2015-ww25/jsapp/samples-pixi-spritesheet-armature/sample.zip","projectTypeName":"com.intel.xdk.projecttype.jsapp"}-->
<preference name="debuggable" value="true"/>
<preference name="SplashScreenDelay" value="2000"/>
<intelxdk:crosswalk xmlns:intelxdk="http://xdk.intel.com/ns/v1" xwalk-command-line="--disable-pull-to-refresh-effect"/>
<intelxdk:crosswalk xmlns:intelxdk="http://xdk.intel.com/ns/v1" xwalk-command-line="--show-fps-counter"/></widget>

The line of interest has the CLI version that was sent to the build server. In your ios.xml file, what version does it show on that line?

0 Kudos
hsdk_k_
Beginner
397 Views

Hi, my xml file is as follows -  the cli version is 4.1.2 here as well.

<?xml version='1.0' encoding='UTF-8'?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:intelxdk="http://xdk.intel.com/ns/v1" id="com.maydev.redjami2-xdk" version="0.0.1" ios-CFBundleVersion="1.0">
<!--This file is generated by the Intel XDK. Do not edit this file as your edits will be lost.           -->
<!--To change the contents of this file, see the documentation on the intelxdk.config.additions.xml file.-->
<intelxdk:version value="1.0"/>
<intelxdk:cordova-cli version="4.1.2"/>
<name>RedJami2-xdk</name>
<author>Maydev Studios</author>
<content src="index.html"/>
<access origin="*"/>
<intelxdk:plugin intelxdk:name="Device" intelxdk:value="org.apache.cordova.device" intelxdk:version="0.2.13"/>
<intelxdk:plugin intelxdk:name="SplashScreen" intelxdk:value="org.apache.cordova.splashscreen" intelxdk:version="0.3.5"/>
<intelxdk:plugin intelxdk:name="File" intelxdk:value="org.apache.cordova.file" intelxdk:version="1.3.2"/>
<intelxdk:plugin intelxdk:name="Dialogs (notification)" intelxdk:value="org.apache.cordova.dialogs" intelxdk:version="0.2.11"/>
<intelxdk:plugin intelxdk:name="cordova-config" intelxdk:value="cordova-plugins/plugin-config" intelxdk:type="local"/>
<intelxdk:plugin intelxdk:name="cordova-plugin-screen-orientation" intelxdk:value="https://github.com/gbenvenuti/cordova-plugin-screen-orientation.git"/>
<preference name="ios-target" value="7.0"/>
<preference name="ios-configuration" value="adhoc"/>
<preference name="Orientation" value="landscape"/>
<preference name="Fullscreen" value="false"/>
<intelxdk:provisioning intelxdk:src="xdk_certs/RedJami2xdkadhoc.mobileprovision" intelxdk:type="adhoc"/>
<!--creationInfo:{"src":"","projectTypeName":"com.intel.xdk.projecttype.jsapp"}-->
<preference name="target-device" value="tablet"/>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/></widget>

 

0 Kudos
PaulF_IntelCorp
Employee
397 Views

Are you choosing "Upload Project" when you start the build? If you choose "Use Existing" the changes to your project will not get sent to the build server and it will just use the last set of files that were sent, which may still be specifying CLI 3.3. I just did a test build and I get CLI 4.1.2 in the build log.

Please try the build again and be sure to select "Upload Project."

0 Kudos
Reply