Hi
I'm getting a strange build error when trying to build a production native app with the "platform" set up as iOS. It works fine with iOSSimulator (although in the iOS Simulator I'm unable to interact with any Sencha Touch apps, even Sencha Kitchen Sink). But back to the build. I'm running OS X Mountain Lion with Sencha Touch 2.2.0 and Sencha Cmd 3.1.1.274
This is the error I get. I see there are a few errors, but from searching around online I'm not finding anything that directs me to how to resolve these or what I'm doing wrong. Any hints would be hugely appreciated!
Thanks!!!
Code:Cydaps-iMac:pattmobile cydaps$ sencha app build native Sencha Cmd v3.1.1.274 [INF] [INF] init-plugin: [INF] [INF] init-plugin: [INF] [INF] -before-app-build: [INF] [INF] cmd-root-plugin.init-properties: [INF] [INF] init-properties: [INF] [INF] init-sencha-command: [INF] [INF] init: [INF] [INF] -before-app-build: [INF] [INF] app-build-impl: [INF] [INF] native: [INF] [INF] -before-init-local: [INF] [INF] -init-local: [INF] [INF] -after-init-local: [INF] [INF] init-local: [INF] [INF] find-cmd: [INF] [INF] -before-init: [INF] [INF] -init: [INF] Initializing Sencha Cmd ant environment [INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml [INF] [INF] -after-init: [INF] [INF] init: [INF] [INF] -before-build: [INF] [INF] sass: [INF] [INF] -before-sass: [INF] [INF] -sass: [INF] executing compass using system installed ruby runtime identical ../css/app.css [INF] [INF] -after-sass: [INF] [INF] page: [INF] [INF] -before-page: [INF] [INF] -page: [INF] building application [INF] Deploying your application to /Applications/XAMPP/xamppfiles/htdocs/PattMobile/build/PattMobile/package [INF] Copied /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app.js to /Applications/XAMPP/xamppfiles/htdocs/PattMobile/build/PattMobile/package/app.js [INF] Copied /Applications/XAMPP/xamppfiles/htdocs/PattMobile/resources/css/app.css to /Applications/XAMPP/xamppfiles/htdocs/PattMobile/build/PattMobile/package/resources/css/app.css [INF] Copied /Applications/XAMPP/xamppfiles/htdocs/PattMobile/resources/images [INF] Copied /Applications/XAMPP/xamppfiles/htdocs/PattMobile/resources/icons [INF] Copied /Applications/XAMPP/xamppfiles/htdocs/PattMobile/resources/startup [INF] Resolving your application dependencies (file:////Applications/XAMPP/xamppfiles/htdocs/PattMobile/index.html) [INF] Compiling app.js and dependencies [INF] Loading classpath entry /Applications/XAMPP/xamppfiles/htdocs/PattMobile/touch/src [INF] Loading classpath entry /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app.js [INF] Loading classpath entry /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => },) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/controller/MainController.js:5162 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => },) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/controller/MainController.js:8762 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => }) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/store/CommentsStore.js:5460 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => },) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/Comments.js:660 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => };) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/CommentsDetails.js:4061 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => });) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/CommentsList.js:3059 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => },) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/Influences.js:660 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => };) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/InfluencesDetails.js:4461 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => });) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/InfluencesDetails.js:6259 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => },) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/Login.js:1061 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => }) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/Login.js:1461 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => });) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/ProjectDetailsContainer.js:12568 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => }); ) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/ProjectDetailsContainer.js:13168 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => };) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/ProjectHome.js:8661 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => },) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/ProjectHomeGP3.js:1060 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => },) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/ProjectHomePursuits.js:1060 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => });) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/ProjectsOfCustomers.js:7059 [WRN] C1000: Rhino Parse Warning (Trailing comma is not legal in an ECMA-262 object initializer => });) -- /Applications/XAMPP/xamppfiles/htdocs/PattMobile/app/view/SalesTeamList.js:3059 [INF] Concatenating output to file /Applications/XAMPP/xamppfiles/htdocs/PattMobile/build/PattMobile/package/app.js [INF] Completed compilation. [INF] Processed remote file touch/sencha-touch.js [INF] Processed local file app.js [INF] Minified app.js [INF] Generated app.json [INF] Embedded microloader into index.html [INF] Generating native package [INF] Packaging your application as a native app to /Applications/XAMPP/xamppfiles/htdocs/PattMobile/build/PattMobile/native ... [ERR] failed running native packager [ERR] Copy operation failed src=/Applications/XAMPP/xamppfiles/htdocs/PattMobile/build/PattMobile/native/PattMobile.app/webapp/resources/icons/iTunesArtwork dst=/Applications/XAMPP/xamppfiles/htdocs/PattMobile/build/PattMobile/native/PattMobile.app/iTunesArtwork /Applications/XAMPP/xamppfiles/htdocs/PattMobile/build/PattMobile/native//PattMobile.app: object file format unrecognized, invalid, or unsuitable Can not open source file The application was successfully packaged Failed to execute system command while signing application with error 256 Failed to package application [ERR] [ERR] BUILD FAILED [ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line: [ERR] /Applications/XAMPP/xamppfiles/htdocs/PattMobile/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#515) [ERR] isJavaCollection (/Users/cydaps/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:183) [ERR] toJS (/Users/cydaps/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:241) [ERR] runAppBuild (x-app-build:9) [ERR] [anonymous] (x-app-build:571) [ERR] x_app_build (x-app-build:569) [ERR] <script> (anonymous:1) [ERR] /Applications/XAMPP/xamppfiles/htdocs/PattMobile/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#515) [ERR] isJavaCollection (/Users/cydaps/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:183) [ERR] toJS (/Users/cydaps/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:241) [ERR] runAppBuild (x-app-build:9) [ERR] [anonymous] (x-app-build:571) [ERR] x_app_build (x-app-build:569) [ERR] <script> (anonymous:1) [ERR] isJavaCollection (/Users/cydaps/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:183) [ERR] toJS (/Users/cydaps/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:241) [ERR] runAppBuild (x-app-build:9) [ERR] [anonymous] (x-app-build:571) [ERR] x_app_build (x-app-build:569) [ERR] <script> (anonymous:1) [ERR] isJavaCollection (/Users/cydaps/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:183) [ERR] toJS (/Users/cydaps/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:241) [ERR] runAppBuild (x-app-build:9) [ERR] [anonymous] (x-app-build:571) [ERR] x_app_build (x-app-build:569) [ERR] <script> (anonymous:1) [ERR] at org.mozilla.ja [ERR] vascript.InterpretedFunction.exec(InterpretedFunction.java:120) [ERR] [ERR] Total time: 22 seconds [ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line: /Applications/XAMPP/xamppfiles/htdocs/PattMobile/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#515) isJavaCollection (/Users/cydaps/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:183) toJS (/Users/cydaps/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:241) runAppBuild (x-app-build:9) [anonymous] (x-app-build:571) x_app_build (x-app-build:569) <script> (anonymous:1)