8

我正在使用 mac,我刚刚下载了 SDK 并破坏了应用程序。安装成功,但是在终端使用 sencha 时

$ cd /Applications/SenchaSDKTools-2.0.0-beta3 
$ sencha

我收到此错误

[WARN] The current working directory (/Applications/SenchaSDKTools-2.0.0-beta3) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode.

Sencha Command v2.0.0 Beta 3
Copyright (c) 2012 Sencha Inc.

知道如何解决吗?我正在使用 MAC 10.7.4

附言

我正在写一个额外的命令,我可以看到以下内容 -

$ echo $PATH
/Applications/SenchaSDKTools-2.0.0-beta3:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
4

4 回答 4

3

不确定您是否遇到特定于 Mac 的问题,但是在 Windows 上,您必须访问cdsencha 应用程序目录。下载 sencha touch 后,cd到该sencha-touch-2.0.1.1文件夹​​,您应该可以在sencha那里运行命令。

例如,尝试运行

sencha generate app myApp myAppFolder

于 2012-08-02T14:27:50.720 回答
1

请参考我在这里写的答案Generate a sencha touch app

最重要的是,您需要设置 SenchaCmd 目录的路径。

为了那个原因

打开 /home/your_user_name/.bash_profile 文件

并在文件末尾键入以下命令

导出 PATH=${PATH}:/path/to/Sencha/Cmd/3.0.2.288

然后从终端输入exec bash 。

这应该可以解决您的问题。

于 2013-03-13T10:26:07.653 回答
0

我能够解决问题,在 sencha-touch-2.0.1.1 文件夹上执行 cd 而不是在 SDK 文件夹中,就像我一开始所做的那样,感谢 Edgar 为我指明了正确的方向

于 2012-08-02T14:41:07.253 回答
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


#---------------------------------------------------------------------------------#
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
于 2014-04-27T16:18:59.953 回答