Sencha cmd build error - sencha-touch

I am struggling for building a Sencha application so need ideas how to build it quickly. I will give you some background about the issue.
I am working on a hybrid app which is built on sencha framework . The app is ready for deployment. This package will be used to upload it in phonegap to create ipk/apk files.
Problem : I got stuck in building process of application. As per sencha touch documentation, we can do it by running following this command:
Sencha app build package
However getting a compile error stating ruby dependency. I Installed ruby however the error still persists.
I suppose I am having conflicts with the Sencha tools versions. I tried with Sencha CMD 2.0.0 and Sencha touch 2.0.1.1 versions but nothing happened. Then I upgraded both of them to Sencha CMD 5.0 and Sencha touch 2.3.1 but same results.
Questions:
1. Do we require anything else except Sencha CMD and Sencha touch?
2. How to upgrade application to latest versions?

Idk if my answer will take you in the right direction or not but when I first started and wanted to make changes with stuff involving ruby I had to use the CMD with ruby that gets installed when you install ruby. Its pretty much the same everything but supports ruby. I couldnt do a lot of things in the regular CMD.

please specify more detail i am not getting but if you want to upgrade your app use first go to your application path and type "sencha app upgrade"

Related

Sencha Cmd 5 and ST 2.4 "build package" bad result

I've been using sencha Cmd since its release and after every update I face some new issues.
Last one, using sencha Cmd Sencha Cmd v5.0.2.270 and sencha touch 2.4, I cant even produce a valid package build.
actual build using cmd 5 and sencha touch 2.4 (not even good build folder):
https://dl.dropboxusercontent.com/u/35041662/build2.4/bad.PNG
previous build (the one I need):
https://dl.dropboxusercontent.com/u/35041662/build2.4/good.PNG
After the "sencha app build package", I deploy it into a "local server" (something phonegap alike) and when I try to run the project, it keeps me asking to reload the app due to an change in one of the app's javascript and never achieve to run.
alert Message:
"Requested: '[...]/js/appverse.js seems to have been changed. Attempt to refresh the application?"
Btw the production an package build generate a cache.appcache file and the app keeps me asking for reload, in previous version of cmd those files didn't exist.
Thank you in advance
It's no longer supported as from 5.0.2.270.
I had the same problem and the only way to solve was, to install the npm cordova within Sencha Touch (sencha cordova init).
After that I can now use the app.cordova.www folder.

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....

I want to upgrade my app from sencha touch 2.1.1 to 2.2.1

I use sencha touch 2.1.1 for my app. But now I want to upgrade my app to sencha touch 2.2.1
I go through http://docs.sencha.com/touch/2.2.1/#!/guide/upgrade_1_to_2 link but they did not get steps for how I can upgrade.
So please any one know the proper steps for upgrading my app from sencha touch 2.1.1 to 2.2.1 the please help me.
You can use the cmd to upgrade your app to a new sdk:
cd /path/to/www/myapp
sencha app upgrade /path/to/new_version_of_sdk
in order to update your app make sure to follow this checklist:
Download the new version.
unpack it and replace the sencha touch lib in you app with newer version
run the app and make sure nothing get messed up due to new version changes
precede the correction if there is any.

Installing Sencha SDK and generating the GS app

I recently downloaded the Sencha SDK and the SDK tools. I installed the SDK tools, and unzipped the contents of the file sencha-touch-2.1.0-commercial.zip to my web server. I cd'd into the directory and ran the command given to generate a getting started app, but I received this message:
abe#Dubai:/var/www/sencha-touch-sdk$ sencha
[WARN] The current working directory (/var/www/sencha-touch-sdk) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode.
Sencha Command v2.0.0 Beta 3
Copyright (c) 2012 Sencha Inc.
....followed by all the info on how to structure commands using sencha
I Googled it, and found out that one of the ways sencha knows that it's the sencha sdk folder is that it contains a hidden file called .sencha, which my sdk directory was missing. After creating a blank .senchasdk file, I ran the command again, but this time I got:
abe#Dubai:/var/www/sencha-touch-sdk$ sencha
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '/var/www/sencha-touch-sdk/command/sencha.js'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)
The interesting thing to me is that it's looking for a "command" directory which doesn't exist in my SDK folder. Did I download/extract the wrong thing? I followed the download link for the sdk that I got in my email from Sencha.
I'm using Ubuntu linux by the way. I hope this isn't as silly of a question as I think it is, I did my best to research the issue
EDIT: I just thought I'd add that I AM able to visit the sencha-touch-sdk directory in my browser and I do see the documentation. This leads me to believe that I have the right package after all...so once again I'm stumped.
Try using the Sencha CMD instead of Sencha SDK Tools for that Sencha SDK version.
Download the Sencha Command latest version then Install Sencha Command into the Bin folder of Sencha SDK tools.
Thereafter you just try by typing 'Sencha' in the command prompt.
**C:\Users\srinivasan.kk>sencha
Sencha Cmd v3.0.2.288**
Hope it helps you.

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