升级到MacOS X 10.9后,Sencha Cmd无法编译应用程序

时间:2014-03-24 11:57:00

标签: ruby extjs osx-mavericks sencha-cmd

将我的Mac升级到MacosX Mavericks之后我遇到了这个问题:

 MacBook-Pro-Sergey:Komus boooch$ sencha app build
Sencha Cmd v4.0.3.74
[INF] 
[INF] init-plugin:
[INF] 
[INF] cmd-root-plugin.init-properties:
[INF] 
[INF] init-properties:
[INF] 
[INF] init-sencha-command:
[INF] 
[INF] init:
[INF] 
[INF] app-build-impl:
[INF] 
[INF] -before-init-local:
[INF] 
[INF] -init-local:
[INF] 
[INF] -after-init-local:
[INF] 
[INF] init-local:
[INF] 
[INF] find-cmd-in-path:
[INF] 
[INF] find-cmd-in-environment:
[INF] 
[INF] find-cmd-in-shell:
[INF] 
[INF] init-cmd:
[INF]      [echo] Using Sencha Cmd from /Users/boooch/bin/Sencha/Cmd/4.0.3.74 for /Users/boooch/Documents/SenchaApps/Komus/build.xml
[INF] 
[INF] -before-init:
[INF] 
[INF] -init:
[INF] Initializing Sencha Cmd ant environment
[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
[WRN] The application was last modified by an older version of Sencha Cmd (0.0.0.0), current is 4.0.3.74. Please run 'sencha app upgrade -noframework' to update to 4.0.3.74.
[INF] 
[INF] -after-init:
[INF] 
[INF] -before-init-defaults:
[INF] 
[INF] -init-defaults:
[INF] 
[INF] -after-init-defaults:
[INF] 
[INF] -init-compiler:
[INF] 
[INF] init:
[INF] 
[INF] -before-build:
[INF] 
[INF] refresh:
[INF] 
[INF] -before-refresh:
[INF] 
[INF] -init:
[INF] 
[INF] -init-compiler:
[INF] 
[INF] -detect-app-build-properties:
[INF] Loading app json manifest...
[INF] Loading classpath entry /Users/boooch/Documents/SenchaApps/Komus/touch/src
[INF] Loading classpath entry /Users/boooch/Documents/SenchaApps/Komus/app.js
[INF] Loading classpath entry /Users/boooch/Documents/SenchaApps/Komus/app
[INF] Loading classpath entry /Users/boooch/Documents/SenchaApps/Komus/build/temp/production/komus/sencha-compiler/app

在这种状态下,它会冻结java进程加载我的CPU超过90%

enter image description here

将ruby降级为1.9.3(http://moduscreate.com/sencha-cmd-not-working-in-os-x-10-9-mavericks/)没有帮助

1 个答案:

答案 0 :(得分:0)

解决!!

我使用debug sencha -d build app 运行sencha构建并停止:

[DBG] Detected lazy instantiation reference to Ext.Component in file /Users/boooch/Documents/SenchaApps/Komus/app.js
[DBG] Adding dynamic requirement on Ext.Component to app.js as a GenericAutoDependency

app.js中的代码是:

Ext.define('Ext.Component', {
    override: 'Ext.Component',
    show: function (animation) {
        return this.callParent([false]);
    },
    hide: function (animation) {
        return this.callParent([false]);
    }
});

此代码修复Android 4.3消息框未关闭问题。当我删除此代码时,所有编译都很好。现在我必须找到Android问题解决方案的解决方案。