Create Sencha Touch Application on Mac - xcode6

I am trying to create an application on Senhcha Touch on Mac and Use it on XCode.
I am using Sencha CMD : 6.0.1.76
Sencha Touch Framework: 2.4.1
Cordova On Mac : 5.2.0
When I am generating new app using terminal it is not generating app correctly.
It throws "touch" and "build" folder out of application directory.
I have created a small video for what actually is happening with me, please check this : https://mega.nz/#!a9ZzFADT!SFKa3KAfGqlloOM7L-9OrSHIeWKGTCqCiXKbJnRrG8A
Please suggest on this..

Use Sencha CMD 5 version, It will work.

You probably have the hidden .sencha folder one directory level up from the folder you intend to be the app. try to open the folder containing your app folder in a code editor and view the contents you will probably see it.
sencha -sdk path/to/touch-0.0.0 generate app AppName path/to/appname

Related

How to upgrade sencha app to the latest Sencha CMD?

I generated my Sencha App using Sencha CMD version 4.0.1.45. Then I downloaded Sencha CMD version 4.0.2.67. Now when inside my application folder I am running command to deploy it on Android, then it is showing the following error:
The application was last modified by an older version of Sencha Cmd (4.0.1.45)
the current is 4.0.2.67.
Please run "sencha app upgrade" to update to 4.0.2.67.
I went to the application folder and then ran this command
sencha app upgrade path/to/senchacmd.
In my case senchacmd is installed in home/bin/Sench/CMD/4.0.2.67. But when I run this command, it shows the following error
Command must be run from a framework folder
Any help is appreciated.
I had exactly the same problem when updating to Ext JS 5.1.0.47. I have white spaces in my path to, but even enquoting the path wouldn't help.
Well, turns out that
sencha app upgrade -ext
Upgrades the SDK from the online repo, so all's good.
sencha app upgrade path/to/senchacmd
The path variable you are using in this command in wrong.
Try asking for help on this command using sencha help app upgrade, it clearly shows the usage is
sencha app upgrade /path/to/sdk.
ie its the path to sdk (like touch-2.3.0), not the path to sencha CMD .
Hope it will be helpful....

unable to create .apk file for sench touch application

i have developed Sencha Application.i want an apk file to test on Device.i refered sencha Docs for it.all the commands works fine except "sencha package build config.json" .i have attached error file "here".And configuration file here "json configuration".
i waste 3 days to solve this issue.
so help me
Probably you have some where Program Files...... so dir is with space. To fix it use
"c:/program files/dir..." so that dir should be in quotes
First of all, can you say the version of sencha? and the sencha CMD are you using?
Please check: http://docs.sencha.com/touch/2-1/#!/guide/command, it's the place where the CMD documentation for the Sencha Touch 2.1 it's stored.

Sencha command - not a valid sdk directory, please cd into a valid directory

I'm having a problem with sencha command. I've cd'd into the path containing the SDK and then pointed to the path of my app but I get the above error. Is this a beta bug or am I missing something? Not sure what else to try....
My command prompt:
C:\Program Files (x86)\SenchaSDKTools-2.0.0-beta3>sencha app create MyApp C:\Development\MyNewApp
You need to go to the SDK folder not the SDK Tools folder to execute sencha command
If you're using the newest version of Sencha Touch, then you shouldn't use the Sencha SDK Tools. Instead, download and use Sencha Cmd (it's a different program with the same name; confusing, yes).
Otherwise, here's a thread which discusses this problem. There are a number of solutions presented, one of which is downloading Sencha Touch and creating a .senchasdk file within it.

sencha generate app doesn't work

I downloaded sencha touch
and extracted into a folder.
And then I downloaded the sdk tool
and installed it.
Used windows 7 cmd, cd to the sencha touch folder, and then run sencha generate app myapp ../myapp,
then it shows a red error message "The current working directory is not a valid SDK directory. Please 'cd' into a SDK directory before executing this command."
If you are using Sencha SDK 2.1.0, you have to use the Sencha CMD instead of Sencha SDK Tools.
Here is the system setup documentation for Sencha CMD:
http://docs.sencha.com/touch/2-1/#!/guide/command

Sencha Cmd V3 Beta

I would like to have an ext app and a touch app within a single workspace. I generated the workspace with:
$ sencha -sdk path/to/ext4.1.1a generate workspace path/toworkspace
This generated:
workspace/.sencha
workspace/ext
I can then generate an ext app, but not a touch app.
I have tried to generate the touch app like so:
$ sencha -sdk path/to/touch2.0.1.1 generate app path/totouchapp
I get an error:
"Failed to determine framework name. Please ensure this command was issued from either a framework or application directory"
So, I also tried to generate the touch app by cd'ing to my touch2.0.1.1 sdk, but that did not work either.
What am I doing wrong?
The latest Cmd tool isn't compatible with older versions of Sencha Touch. You need to install the latest SDK for it to work, apparently.
Per this thread in sencha forums:
Wrong Touch SDK!
I was using the wrong Touch SDK. Found the correct one here:
http://www.sencha.com/forum/announcement.php?f=89
I guess I just learn the proper way
you have to download the sencha touch SDK (SenchaCmd-3.0.0.250-windows.exe.zip) and install it, and of course you have to download the sencha touch framework (sencha-touch-2.1.0-gpl.zip).
you have to CD (change directory) on the sencha touch framework in my case it is under: d:\webdav\htdocs\touch and apply command: sencha generate app gs d:\webdav\htdocs\gs
I also try this command: sencha -sdk D:\webdav\htdocs\touch generate workspace D:\webdav\htdocs\gs and it works. No more error as the earlier posts.
thanks all!
the name has to be the same thing as it is after the generate such like this
Senchacmd → sencha -sdk c:\wamp\www\touch2.0.1.1 generate app MyApp c:\wamp\www\MyApp