When I generate an app with Architect, it creates app.js at the top level of the project as you noted above. If I create an empty app with Architect (drag nothing to the canvas) and subsequently run sencha generate app then the generate command runs to completion without errors. After the sencha generate command I have an app.js file at the top level and another one in the app/ subdirectory. How do I get both Architect and sencha cmd to use the same file?

When I generate an app with Architect and add anything to the canvas (so I can see something when previewing it), the sencha generate command errors out as detailed in my previous posts.

So the issue appears to be related to the two copies of app.js, one created and maintained by Architect, and another created by sencha generate app.

You noted something related to this in one of your posts, but since the error I see happens on the initial run of sencha generate, I do not have the option of editing the config file in the .sencha directory because that directory does not exist prior to running sencha generate app.

All I am trying to do is to set up a work flow where I generate and maintain an app with Architect and use sencha cmd to create a production build when needed.

Edit the Library Base Path to point to the copy of ext-4.1.1a on my server

Drag Panel to canvas

Save and preview the app

Close Architect

cd to location of extJs-4.1.1a

Execute: sencha generate app Test09 /var/www/Test09/

Receive errors from sencha cmd shown below

Code:

[INF] Processing class inheritance graph[INF] Processing instantiation refereces to classes and aliases[WRN] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => ] ] :: ( /var/www/Test09/ext/src/ux/grid/filter/DateFilter.js => 133 : 25 )[INF] Processing source dependencies[ERR] Failed to find file for Test09.view.Viewport required by /var/www/Test09/app/app.js[ERR] BUILD FAILEDNote that cmd is using app/app.js which is not the app.js that was created by Architect, but was generated by cmd during this process.

To be precise I tried a lot of different versions of sencha cmd and sdk. My latest attempts were executed according to this guide. I am using:

Sencha cmd v3.0.2.288 and 2.1.1 framework version.

I created all the provisioning portal certificates etc. Got my bundle seed id. I generate the project then follow up with a production (or native I tried both) build. finally I try to package it using

sencha app package build packager.json

As I understand it the result (outpath) should contain a file MyApp.app that I can upload to my iTunes and further onto my device.

The thing is I get no file with that extension and the command line does not prompt me at all after I execute the last command. I get the cmd version empty line and that's it. However a file structure is created in the destenation folder.

I am stuck at this point for at least a week now and since there is no error message I am quite clueless about what is going on. I am guessing this miight be an error on my part or some sort of bug. Any help will be much appriciated.senchapost.jpg

@clansman please stop posting duplicates. Look at the message when you post, it says your post is marked for moderation meaning your post is there just needs approved which I have and deleted the duplicates. Trying many times doesn't mean that eventually it will work.