Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sencha Touch - Cannot generate first app

I just downloaded Sencha Touch 2.1.0 and Sencha CMD v.3.0.2.288. I extracted the Sencha Touch SDK into MAMP's htdocs folder. When I tried following the getting started guide,

sencha app create MyApp ../MyApp

gives the error

Sencha Cmd v3.0.2.288
[ERR]       No such property : 'create'

I am guessing that the create argument is not available in this version of Sencha Cmd. I tried

sencha app build MyApp ../MyApp

I get the error

Sencha Cmd v3.0.2.288
[ERR]       'MyApp' not in valid range: [native, package, testing, production]
[ERR]       Illegal value : MyApp

Any idea what went wrong?

like image 393
Nyxynyx Avatar asked Feb 01 '13 21:02

Nyxynyx


1 Answers

To generate a new app you need to:

cd path/to/sencha-touch-2.1/directory and then run:

sencha generate app MyApp path/to/MyApp

Then to build your app:

cd path/to/MyApp and run:

sencha app build native

like image 177
cclerv Avatar answered Nov 15 '22 04:11

cclerv