Search code examples
sencha-touchsencha-touch-2sencha-cmd

This app was last modified by a newer version of Sencha Cmd - version mismatch


I'm trying to add the sencha cmd production package into my build process. But the final step when I need to package the app fails with the above error.

What I don't understand is this is a newly built application fresh from the SVN repo. The sencha cmd is the latest as I've just upgraded. So my question is when it states that the app was last modified by a newer version of sencha cmd is it lying to me?

2 things which aren't correct:

  1. The app can't have been modified by a newer version because I've just upgraded the build machine version of sencha cmd to the newest version.
  2. The app has been created by Sencha cmd in the past, but this would have been older than the current one on the build machine.

So I'm left baffled how to resolve this. How does Sencha Cmd 'know' that the app was last modified by a different version anyway? Is there some file within my \app folder which can be fudged so that it thinks the version is the latest? And what has the Sencha Cmd got to do with my application code-base anyway?


Solution

  • You can run the new Cmd version in update mode. I think this is really intended to update the Sencha Touch version, but if you just point it at the current version (2.1) then it will just update itself.

    So, for example, run the line below with the latest Cmd:

    sencha app upgrade [directory where 2.1 is]

    Make sure you take a copy of your app.js first though, as the new version mangles this - just put your old one back after update. Also be aware that it will update your "Touch" directory, so make sure this is backed up as well.

    Once the update has been run and you've put the app.js file back, your project should now build with the latest cmd.