0

我正在使用 Sencha touch 和 Sencha touch Cmd 生成应用程序。我正在使用这种语法sencha generate app MyApp Path/to/folder all。但是它的作用是在我的 sencha touch sdk 文件夹中创建这个项目。为什么以及如何在其他地方制作项目?

下面是我的命令的输出

Zafars-MacBook-Pro:secha-touch-sdk zafarsaleem$ sencha generate app /Applications/XAMPP/xamppfiles/htdocs/playoutube/www all
Sencha Cmd v3.0.0.250
[INF]       init-properties:
[INF]       init-sencha-command:
[INF]       init:
[INF]       -before-generate-workspace:
[INF]       generate-workspace-impl:
[WRN]       Ignoring @require ../version/Version.js in js/String.js
[WRN]       Ignoring @require ../Ext-more.js in js/Format.js
[INF]       -before-copy-framework-to-workspace:
[INF]       copy-framework-to-workspace-impl:
[INF]            [copy] Copying 1103 files to  /Applications/XAMPP/xamppfiles/htdocs/senchatouch/secha-touch-sdk/all/touch
[INF]            [copy] Copying 1 file to /Applications/XAMPP/xamppfiles/htdocs/senchatouch/secha-touch-sdk/all/touch
[INF]            [copy] Copying 1 file to /Applications/XAMPP/xamppfiles/htdocs/senchatouch/secha-touch-sdk/all/touch
[INF]       [propertyfile] Updating property file: /Applications/XAMPP/xamppfiles/htdocs/senchatouch/secha-touch-sdk/all/.sencha/workspace/sencha.cfg
[INF]       -after-copy-framework-to-workspace:
[INF]       copy-framework-to-workspace:
[INF]       -after-generate-workspace:
[INF]       generate-workspace:
[INF]       init-properties:
[INF]       init-sencha-command:
[INF]       init:
[INF]       -before-generate-app:
[INF]       generate-app-impl:
[INF]           [mkdir] Created dir: /Applications/XAMPP/xamppfiles/htdocs/senchatouch/secha-touch-sdk/all/app/model
[INF]           [mkdir] Created dir: /Applications/XAMPP/xamppfiles/htdocs/senchatouch/secha-touch-sdk/all/app/controller
[INF]           [mkdir] Created dir: /Applications/XAMPP/xamppfiles/htdocs/senchatouch/secha-touch-sdk/all/app/store
[INF]           [mkdir] Created dir: /Applications/XAMPP/xamppfiles/htdocs/senchatouch/secha-touch-sdk/all/app/profile
[INF]           [mkdir] Created dir: /Applications/XAMPP/xamppfiles/htdocs/senchatouch/secha-touch-sdk/resources/icons
[INF]       Generating new packager.json file using native packager
[INF]       copy-sdk:
[INF]            [copy] Copying 1 file to /Applications/XAMPP/xamppfiles/htdocs/senchatouch/secha-touch-sdk/all/resources/css
[INF]       -after-generate-app:
[INF]       generate-app:
4

2 回答 2

1

我不了解 Mac,但在 Windows 中,这就是我们在所需位置创建应用程序的方式。我认为问题在于您设置的路径。

#  Make sure the current working directory is the Sencha Touch 2 SDK
cd /path/to/sencha-touch-2-sdk
sencha app create MyApp /path/to/www/myapp
于 2012-12-12T04:15:46.667 回答
0

我在使用 Sencha Touch 时遇到了几个问题,因为官方文档不适用于 2.1+ 版本。

经过努力,我的帮助来自这个网站

于 2013-05-10T13:42:25.333 回答