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.
Yeah I haven't seen this. You're making some sense. What framework version are you using and what version of Cmd?
I am running on Linux (Ubuntu 10.04)
Architect: 2.1.0 Build 678
ExtJs: 4.1.1a commercial
Here are the steps I followed - it is very repeatable:
- Create new project in Architect
- 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
[INF] Processing class inheritance graph[INF] Processing instantiation refereces to classes and aliases[WRN] [  : 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 FAILED
Note 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.
Tried to cut and paste code block into post #13 and it did not work. Please see code block in post #8 for detail of errors from cmd.
Note that cmd is using app/app.js which is not the app.js that was created by Architect, but is a template generated by cmd during this process.
Are you changing your application name to Test09 (this must match)
Originally Posted by John Carter
Defaults to MyApp
No I was not and that was the problem. I am off and running. Many thanks.
Hello, I have a problem with building a native ios app on windows.
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 v184.108.40.2068 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.
The attached picture shows the output and here is my config file:
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.
@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.
I've not done a iOS build, but using Architect and sencha cmd 3 building an APK file this is what I had to do to get it to work. Might be some common issues for doing both builds for iOS and Android.
This may help some people.
I'll be reading and passing along your writeup here. Thanks so much for sharing it with the community. Feel free to tweet me if you have any issues in the future. You give, I give. You're awesome.