无法为sencha touch s生成应用程序

时间:2013-07-24 06:27:55

标签: javascript extjs sencha-touch

我一直在寻找很长但仍有很多解决方案和许多混淆,但我仍然无法生成sencha touch app

我已安装SenchaSDKTools-2.0.0-beta3Sencha Cmd 3.1.1.274

这里是PATH

  

/Users/jhon/bin/Sencha/Cmd/3.1.1.274:/Applications/SenchaSDKTools-2.0.0-beta3 /:在/ usr / bin中:/ bin中:/ usr / sbin目录:/ sbin目录:在/ usr /本地/ bin中:在/ usr /本地/ GIT中/ bin中:在/ usr / X11 / bin中

当我发出命令sencha which时,我可以看到以下路径

Sencha Cmd v3.1.1.274
/Users/john/bin/Sencha/Cmd/3.1.1.274/

当我尝试使用以下命令

生成我的应用程序时
sencha generate app myapp /Library/WebServer/Documents/myapp

我收到以下错误

Sencha Cmd v3.1.1.274
[INF] Workspace does not have framework null at /Library/WebServer/Documents ... copying
[ERR] Failed to determine framework name.  Please ensure this command was issued from either a framework or application directory

5 个答案:

答案 0 :(得分:0)

我认为是路径问题,如果我使用绝对路径,则在我的框中,它从bin cmd所在的位置开始:

ng@ng-laptop-kv:~$ sencha generate app MyAPP /myapppp
Sencha Cmd v3.1.2.342
[INF] init-plugin:
[INF] -before-generate-workspace:
[INF] init-properties:
[INF] init-sencha-command:
[INF] init:
[INF] generate-workspace-impl:
[INF]      [echo] generating into /myapppp from /home/ng/bin/Sencha/Cmd/3.1.2.342/templates/workspace
[ERR] Directory /myapppp/packages creation was not successful for an unknown reason

..它适用于相对路径

答案 1 :(得分:0)

你应该使用这个命令

sencha -sdk /path/to/SDK generate app MyApp /path/to/MyApp

/ path / to / SDK是您复制sencha sdk文件的地方

答案 2 :(得分:0)

我解决了安装中的几个错误,改变了以下内容: 两个非常重要的文件:

/Users/sencha/.bashrc /Users/sencha/.bash_profile

朋友你好, 我解决了安装几个错误,改变了以下内容: 两个非常重要的文件:

我的个人安装文件夹:

/Sancha 

默认安装位置:

/Applications/SenchaSDKTools-2.0.0-Beta/ 

看看:

nano /Users/sencha/.bash_profile

export PATH=/Users/sencha/bin/Sencha/Cmd/4.0.4.84:$PATH


export SENCHA_CMD_3_0_0="/Users/sencha/bin/Sencha/Cmd/4.0.4.84"


export PATH=/Sencha/SenchaSDKTools-2.0.0-beta3:$PATH


export SENCHA_SDK_TOOLS_2_0_0_BETA3="/Sencha/SenchaSDKTools-2.0.0-beta3"
#
export PATH=/Applications/SenchaSDKTools-2.0.0-beta3:$PATH


export SENCHA_SDK_TOOLS_2_0_0_BETA3="/Applications/SenchaSDKTools-2.0.0-beta3"


SENCHA_SDK_TOOLS_2_0_0_BETA3=/Applications/SenchaSDKTools-2.0.0-beta3/
#
export PATH="$PATH:/usr/local/bin"
export PATH=/Users/admin/bin/Sencha/Cmd/4.0.4.84:$PATH
export SENCHA_CMD_4_0_0="/Users/admin/bin/Sencha/Cmd/4.0.4.84"
#
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/command:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/jsbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/appbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/command:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/jsbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/appbuilder:$PATH

----------------------------------------------- ----------------------------------

nano /Users/sencha/.bashrc

export PATH=/Users/sencha/bin/Sencha/Cmd/4.0.4.84:$PATH


export SENCHA_CMD_3_0_0="/Users/sencha/bin/Sencha/Cmd/4.0.4.84"


export PATH=/Sencha/SenchaSDKTools-2.0.0-beta3:$PATH
#
export SENCHA_SDK_TOOLS_2_0_0_BETA3="/Sencha/SenchaSDKTools-2.0.0-beta3"


export PATH=/Applications/SenchaSDKTools-2.0.0-beta3:$PATH


export SENCHA_SDK_TOOLS_2_0_0_BETA3="/Applications/SenchaSDKTools-2.0.0-beta3"


SENCHA_SDK_TOOLS_2_0_0_BETA3=/Applications/SenchaSDKTools-2.0.0-beta3/
#
export PATH="$PATH:/usr/local/bin"
export PATH=/Users/admin/bin/Sencha/Cmd/4.0.4.84:$PATH
export SENCHA_CMD_4_0_0="/Users/admin/bin/Sencha/Cmd/4.0.4.84"
#
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/command:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/jsbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/appbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/command:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/jsbuilder:$PATH
#export PATH=/Applications/SenchaSDKTools-2.0.0-Beta/appbuilder:$PATH

答案 3 :(得分:0)

我已下载了extJS的压缩GPL版本,并在ext-6.0.1-gpl文件夹中解压缩。 sdk文件夹是里面的一个文件夹,所以实际的路径是ext-6.0.1-gpl \ ext-6.0.1 - 这个文件夹包含.sencha,build,classic等等的fodlers。我注意到在几个命令之后这个文件夹是已损坏且仅包含错误日志。所以我再次提取原始的GPL版本并检查以查看提取的文件看起来没问题。然后我执行了generate命令。 所以关键是要检查你的sdk文件夹是否包含必要的文件/文件夹或它是否已损坏。如果没有,cd到sdk目录并运行命令,它应该只是工作:)

答案 4 :(得分:0)

请先在视频下方查看。这个视频解释了我们如何在Ext JS中设置应用程序。你必须使用 Sencha touch framework (在视频Ext js框架中使用过),其他步骤都是一样的。

https://www.youtube.com/watch?v=jXMlnS_26CQ