24 Sep 2013 4:09 AM #1
Sencha Cordova Integration Emulating & Packaging App Fails
Sencha Cmd version(s) tested:
- Sencha Cmd v184.108.40.206
- Mac OS X 10.8.5
- Sencha Touch 2.3.0-b2
- Following the steps from the 2.3.0 documentation found here : http://sc13-live.sencha.com/touch-docs/#!/guide/cordova
- generate an initial application, then init cordova ( cordova installed using npm)
- both sencha app build -run native and sencha app build native fail at the same place
Steps to reproduce the problem:
NGKW-MAC-266:touch-2.3.0 patt0$ sencha generate app fms ~/Desktop/dev_root/fms NGKW-MAC-266:touch-2.3.0 patt0$ cd ~/Desktop/dev_root/fms NGKW-MAC-266:fms patt0$ sencha cordova init
NGKW-MAC-266:fms patt0$ sencha app build -run native
The result that was expected:
- normal execution with each package build
- java exception
Screenshot or Video:
- not provided (perhaps there is a bug in a generated file or script)
25 Sep 2013 12:01 PM #2
Please see http://www.sencha.com/forum/showthre...nknown-command.
The Cordova integration in Cmd 4 RC is being replaced in Cmd 4 GA to upgrade to the v3 Cordova API.
25 Sep 2013 8:23 PM #3
Thanks, the problem I describe is slightly different, in any case lets wait for the GA to drop and we will see.
2 Oct 2013 4:48 AM #4
I get the same errors.
Sencha Cmd version(s) tested: 220.127.116.11
Operating System: Mac OS 10.8.4
Framework used: 2.3.0
2 Oct 2013 5:11 AM #5
[ERR] The following error occurred while executing this line:
/Users/xxxx/Documents/Production/xxx/appName/.sencha/app/build-impl.xml:414: The following error occurred while executing this line:
2 Oct 2013 10:21 AM #6
Apologies all around for this bug, essentially the problem is Java 1.6 does NOT have forEach support. We had been testing on a mac with 1.7 so everything seemed smooth. Cmd 4.0.1 will fix this bug but wont be out for a little while so there are some ways to fix this now.
First you can upgrade to Java 1.7 on your system.
Second option is to use PhoneGap instead of Cordova. PhoneGap internally checks for missing platforms whereas in the Cordova Packager we had to do this ourselves, which is where the loop comes in. If you init your app with PhoneGap instead this will not be an issue
Last option is to use the attached cordova-impl.xml file. You will need to rename this file from cordova-impl.xml.txt to just cordova-impl.xml. You then need to replace the cordova-impl here:
Sencha Inc | Senior Software Engineer