REQUIRED INFORMATION
Sencha Cmd version(s) tested:
  • Sencha Cmd v4.0.0.194
Operating System:
  • Mac OS X 10.8.5
Framework used:
  • Sencha Touch 2.3.0-b2
Description:
  • 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
Diagnostic Output:The output from sencha diag show:
Code:
[INF] 
[INF] -after-init-local:
[INF] 
[INF] init-local:
[INF] 
[INF] find-cmd-in-path:
[INF] 
[INF] find-cmd-in-environment:
[INF] 
[INF] find-cmd-in-shell:
[INF] 
[INF] init-cmd:
[INF]      [echo] Using Sencha Cmd from /Users/patt0/tools_root/Sencha/Sencha/Cmd/4.0.0.194 for /Users/patt0/Desktop/dev_root/fms/build.xml
[INF] 
[INF] -before-init:
[INF] 
[INF] -init:
[INF] 
[INF] -after-init:
[INF] 
[INF] -before-init-defaults:
[INF] 
[INF] -init-defaults:
[INF] 
[INF] -after-init-defaults:
[INF] 
[INF] -init-compiler:
[INF] 
[INF] init:
[INF] 
[INF] -before-cordova-init:
[INF] 
[INF] -cordova-init:
[INF] 
[INF] -after-cordova-init:
[INF] 
[INF] cordova-init:
[INF] 
[INF] cordova-copy-build:
[INF] 
[INF] -before-cordova-copy-build:
[INF] 
[INF] -cordova-copy-build:
[INF] 
[INF] -after-cordova-copy-build:
[INF] 
[INF] -before-cordova-platform-add:
[INF] 
[INF] -cordova-platform-add:
[ERR] The following error occurred while executing this line:
/Users/patt0/Desktop/dev_root/fms/.sencha/app/build-impl.xml:414: The following error occurred while executing this line:
/Users/patt0/Desktop/dev_root/fms/.sencha/app/cordova-impl.xml:141: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException: Java class "[Ljava.lang.String;" has no public instance field or method named "forEach". (<Unknown source>#10) in <Unknown source> at line number 10
     at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)

Steps to reproduce the problem:
Code:
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
changed cordova.local.properties to cordova.platforms=ios android
Code:
NGKW-MAC-266:fms patt0$ sencha app build -run native

The result that was expected:
  • normal execution with each package build
The result that occurs instead:
  • java exception
HELPFUL INFORMATION

Screenshot or Video:
  • None
Possible fix:
  • not provided (perhaps there is a bug in a generated file or script)