PDA

View Full Version : Tried to generate app GS > "Failed to determine framework name"



user2223091
22 Nov 2012, 7:33 PM
Hello,

I'm on Mac OS X Mountain Lion, I downloaded:
- SenchaCmd-3.0.0.250-osx
- SenchaSDKTools-2.0.0-beta3-osx
- sencha-touch-2.1.0-gpl

It's all installed in:
Applications/Sencha/sencha-touch-2
Applications/Sencha/SenchaCMD3
Applications/Sencha/SenchaSDKTools

When I try to generate my first app using
sencha generate app GS ../GS

I've got the error:

Failed to determine framework name. Please ensure this command was issued from either a framework or application directory

But the command
sencha generate app seems to respond :

Sencha Cmd v3.0.0.250 [ERR] sencha.generate.app requires these parameters: path (The path for the generated application)

Do you have any idea where this error comes from?
Thanks for your help,
- Victor

dongryphon
23 Nov 2012, 12:09 AM
You do not need SDK Tools ... I would remove them as Sencha Cmd replaces them.

Sounds like you are not running the command from the framework folder. For getting started, see these guides:

http://docs.sencha.com/ext-js/4-1/#!/guide/command
http://docs.sencha.com/ext-js/4-1/#!/guide/command_app

This particular issue is covered here:

http://docs.sencha.com/ext-js/4-1/#!/guide/command-section-4

user2223091
24 Nov 2012, 7:22 PM
It's work. Thanks for your message.

What I've done:


cd /Applications/Sencha/sencha-touch-2

And :


sencha generate app GS ../GS

Have a good day

bobg
7 Feb 2013, 1:03 PM
Had same issue.

You don't need the Sencha-Touch-SDK as the Sencha-CMD replaces it.

Delete the SDK and install CMD as per the documentation.

For the 'sencha' command use the -sdk flag to tell it where ext-js or sencha-touch lives.

Like this:

sencha -sdk /Applications/Sencha/sencha-touch-2 generate app GS ../GS

Hope this helps someone else.

dongryphon
7 Feb 2013, 2:38 PM
To clarify the above comment - this "Touch SDK" piece should be "SDK Tools".

You need Sencha Touch 2.1 (informally called "the SDK") and Sencha Cmd v3 to run the command posted.


You don't need the Sencha-Touch-SDK Tools as the Sencha-CMD replaces it.