2012-12-11 62 views
0

我正在生成使用sencha觸摸與sencha touch Cmd的應用程序。我正在使用這個語法sencha generate app MyApp Path/to/folder all。但是它的功能是在我的sencha touch sdk文件夾中創建這個項目。爲什麼以及如何在其他地方製作項目?sencha觸摸生成應用程序問題

下面是我的命令的輸出

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: 

回答

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 
+0

該命令適用於Sencha Touch命令工具。我正在使用Sencha Touch Cmd。命令工具不再與Sencha Touch 2.1兼容。根據官方文件,我的命令是正確的,但它不適合我。 – 2619

+1

http://docs.sencha.com/touch/2-1/#!/guide/command_app閱讀頁面底部的第一條評論。 –

0

我遇到了一些問題煎茶觸摸,因爲官方文檔並不適用於版本2.1及以上版本。

掙扎後,我的幫助來自this site