我刚刚下载了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
知道出了什么问题吗?
答案 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