0

我已经搜索了很长时间,但仍然有很多解决方案和很多困惑,但我仍然无法生成 sencha touch 应用程序

我已经安装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/local/bin: /usr/local/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
4

5 回答 5

0

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

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

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

我的个人安装文件夹:

/Sancha 

默认安装位置:

/Applications/SenchaSDKTools-2.0.0-Beta/ 

看一看:

纳米 /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

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

纳米 /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
于 2014-04-27T16:24:59.590 回答
0

I think is a path issue, in my box if I use an absolute path, it starts from where the bin cmd is located:

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

..and it works with a relative path

于 2013-07-24T15:29:17.293 回答
0

你应该使用这个命令

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

/path/to/SDK 是您复制 sencha sdk 文件的位置

于 2014-01-29T11:33:45.787 回答
0

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

于 2016-09-06T09:45:24.467 回答
0

请先看看下面的视频。该视频解释了我们如何在 Ext JS 中设置应用程序。必须使用Sencha touch 框架(视频中使用了 Ext js 框架),其他步骤相同。

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

于 2016-09-27T08:07:32.180 回答