Sencha Touch - 无法生成第一个应用程序

时间:2013-02-01 21:58:30

标签: extjs sencha-touch sencha-touch-2 sencha-architect

我刚刚下载了Sencha Touch 2.1.0和Sencha CMD v.3.0.2.288。我将Sencha Touch SDK解压缩到MAMP的htdocs文件夹中。当我尝试按照入门指南进行操作时,

sencha app create MyApp ../MyApp

给出错误

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

我猜这个版本的Sencha Cmd中没有create参数。我试过了

sencha app build MyApp ../MyApp

我收到错误

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

知道出了什么问题吗?

1 个答案:

答案 0 :(得分:12)

要生成新应用,您需要:

cd path/to/sencha-touch-2.1/directory然后运行:

sencha generate app MyApp path/to/MyApp

然后构建你的应用程序:

cd path/to/MyApp并运行:

sencha app build native