Build Sencha Touch-构建已完成,但应用程序未';行不通

Build Sencha Touch-构建已完成,但应用程序未';行不通,build,sencha-touch-2,production,Build,Sencha Touch 2,Production,我用sencha touch 2.3.1开发了一个应用程序,在开发模式下运行良好。当我从命令行“sencha app build production”运行时,一切看起来都很好,甚至没有给出任何警告 当我尝试运行应用程序时,我会看到加载屏幕并立即看到以下消息: Error evaluating http://somepath.com/app.js with message: TypeError: Cannot call method 'getController' of undefin

我用sencha touch 2.3.1开发了一个应用程序,在开发模式下运行良好。当我从命令行“sencha app build production”运行时,一切看起来都很好,甚至没有给出任何警告

当我尝试运行应用程序时,我会看到加载屏幕并立即看到以下消息:

     Error evaluating http://somepath.com/app.js with message: TypeError: Cannot call method 'getController' of undefined 
我已经检查了三次所有依赖项,每个视图在requires部分都有它所需的视图。我已经添加了我的ming的所有要求,也在控制器类中,但它没有解决问题。我的应用程序在视图和控制器中的几个位置使用getController方法,例如

    var controller1 = MyApp.app.getController('Controller1');   
    var variable = controller1.... etc etc;
在开发模式下,一切都很好。
请问您有什么见解吗?

您是否尝试过“sencha应用程序构建测试”以查看其是否有效?此外,在开发中,您是否在浏览器控制台中看到任何警告?是的,我看到两个警告:“[警告] [匿名] [ExtLoope]同步加载MyApp.View,SoMeView;考虑将“MyApp.View,SimeView”添加为相应的类的要求”-由COUNSOL.JS抛出。但是所有视图都正确填充了所需的部分,我已经检查了数千次了!如果Ext.Loader抱怨缺少“SomeView”类,那么它缺少的某个重要的地方足以在生产中杀死你的应用程序。只需将其添加到Ext.application({requires:[…]})