Search code examples
extjssencha-touchsencha-touch-2sencha-architect

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?


Solution

  • 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