3

I am working start on sencha touch.I have mac os.I have download sencha-touch-2.2.1-commercial.zip and SenchaCmd-3.1.2.342-osx. I have extract and download both of pkg.Now when I try to generate app using following command its gives errors.Please any body help me to resolve these issue.

Thanks :)

ithands:~ mohitb$ sencha generate app MyApp ../MyApp

Sencha Cmd v3.1.2.342

[INF]

[INF] init-plugin:

[INF]

[INF] -before-generate-workspace:

[INF]

[INF] init-properties:

[INF]

[INF] init-sencha-command:

[INF]

[INF] init:

[INF]

[INF] generate-workspace-impl:

[INF] [echo] generating into /Users/mohitb/../MyApp from /Users/mohitb/bin/Sencha/Cmd/3.1.2.342/templates/workspace

[INF] [mkdir] Created dir: /Users/MyApp/packages

[INF]

[INF] copy-framework-to-workspace-impl:

[INF] [propertyfile] Updating property file: /Users/MyApp/.sencha/workspace/sencha.cfg

[INF]

[INF] copy-framework-to-workspace:

[INF]

[INF] generate-workspace:

[INF]

[INF] -after-generate-workspace:

[ERR] Unable to locate 'framework.dir' property from sencha.cfg

[ERR] Please ensure this command was executed from a valid framework directory

[ERR] Non-framework directory

4

1 回答 1

13

You should use the command from your sencha touch framework location, not from your workspace. (/Users/mohitb/bin/Sencha/Cmd/3.1.2.342/templates/workspace)

Please ensure this command was executed from a valid framework directory.

Go to the touch-2.2.1 in your sencha-touch-2.2.1 folder and then use the generate command:

 sencha generate app [options] name \path
于 2013-07-16T05:58:54.947 回答