Sencha cmd build error: shellscript returned: 1
Sencha cmd build error: shellscript returned: 1
我正在处理一个预先存在的 Sencha Touch 项目。我无法构建它并且不确定我应该如何调试 Sencha cmd 构建问题。非常感谢任何有关此特定错误的帮助或有关如何设置 Sencha 构建环境的提示。
这是错误消息的片段:
[ERR] The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/build-impl.xml:437: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/packager-impl.xml:17: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/cordova-impl.xml:109: The following error occurred while executing this line:
jar:file:/Users/foo/luggage/bin/Sencha/Cmd/6.0.0.202/sencha.jar!/com/sencha/ant/antlib.xml:680: shellscript returned: 1
at com.sencha.exceptions.BasicException.wrap(BasicException.java:54)
at com.sencha.ant.AntScript.execute(AntScript.java:120)
at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:280)
at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:738)
at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:97)
at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:346)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
at com.sencha.cli.Command.dispatch(Command.java:43)
at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePluginCommands.java:201)
at com.sencha.cli.Commands.dispatch(Commands.java:64)
at com.sencha.cli.Commands.dispatch(Commands.java:64)
at com.sencha.command.Sencha.dispatch(Sencha.java:73)
at com.sencha.command.Sencha.main(Sencha.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
Caused by: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/build-impl.xml:437: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/packager-impl.xml:17: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/cordova-impl.xml:109: The following error occurred while executing this line:
jar:file:/Users/foo/luggage/bin/Sencha/Cmd/6.0.0.202/sencha.jar!/com/sencha/ant/antlib.xml:680: shellscript returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at com.sencha.ant.AntScript.execute(AntScript.java:116)
at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:280)
at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:738)
at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:97)
at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:346)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
at com.sencha.cli.Command.dispatch(Command.java:43)
at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePluginCommands.java:201)
at com.sencha.cli.Commands.dispatch(Commands.java:64)
at com.sencha.cli.Commands.dispatch(Commands.java:64)
at com.sencha.command.Sencha.dispatch(Sencha.java:73)
at com.sencha.command.Sencha.main(Sencha.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
我是 运行 Mac OS X 10.10.4。以下是 Sencha Cmd 及其一些依赖项的版本号:
Sencha Cmd v6.0.0.202
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
Compass 1.0.3 (Polaris)
cordova 5.1.1
我不确定我的 Sencha Touch 是什么版本 运行。以下是一些希望有用的值:
.sencha/app/sencha.cfg: app.cmd.version=6.0.0.202
.sencha/workspace/sencha.cfg: workspace.cmd.version=5.0.3.324
touch/cmd/sencha.cfg: framework.cmd.version=4.0.5.87
这是完整的构建日志:https://gist.githubusercontent.com/jkndrkn/5fbecd12c3875649687f/raw/sencha-cmd-build-log
发生的错误与 cordova ios 平台文件有关。
我从cordova文件夹中找到了运行 cordova platform remove {platform}
,然后重新添加平台就可以了。 (重新添加,cordova platform add {platform}
)
我正在处理一个预先存在的 Sencha Touch 项目。我无法构建它并且不确定我应该如何调试 Sencha cmd 构建问题。非常感谢任何有关此特定错误的帮助或有关如何设置 Sencha 构建环境的提示。
这是错误消息的片段:
[ERR] The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/build-impl.xml:437: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/packager-impl.xml:17: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/cordova-impl.xml:109: The following error occurred while executing this line:
jar:file:/Users/foo/luggage/bin/Sencha/Cmd/6.0.0.202/sencha.jar!/com/sencha/ant/antlib.xml:680: shellscript returned: 1
at com.sencha.exceptions.BasicException.wrap(BasicException.java:54)
at com.sencha.ant.AntScript.execute(AntScript.java:120)
at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:280)
at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:738)
at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:97)
at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:346)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
at com.sencha.cli.Command.dispatch(Command.java:43)
at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePluginCommands.java:201)
at com.sencha.cli.Commands.dispatch(Commands.java:64)
at com.sencha.cli.Commands.dispatch(Commands.java:64)
at com.sencha.command.Sencha.dispatch(Sencha.java:73)
at com.sencha.command.Sencha.main(Sencha.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
Caused by: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/build-impl.xml:437: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/packager-impl.xml:17: The following error occurred while executing this line:
/Users/foo/bartech/bartech2go-new/.sencha/app/cordova-impl.xml:109: The following error occurred while executing this line:
jar:file:/Users/foo/luggage/bin/Sencha/Cmd/6.0.0.202/sencha.jar!/com/sencha/ant/antlib.xml:680: shellscript returned: 1
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at com.sencha.ant.AntScript.execute(AntScript.java:116)
at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:280)
at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:738)
at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:97)
at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:346)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
at com.sencha.cli.Command.dispatch(Command.java:43)
at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePluginCommands.java:201)
at com.sencha.cli.Commands.dispatch(Commands.java:64)
at com.sencha.cli.Commands.dispatch(Commands.java:64)
at com.sencha.command.Sencha.dispatch(Sencha.java:73)
at com.sencha.command.Sencha.main(Sencha.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
我是 运行 Mac OS X 10.10.4。以下是 Sencha Cmd 及其一些依赖项的版本号:
Sencha Cmd v6.0.0.202
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
Compass 1.0.3 (Polaris)
cordova 5.1.1
我不确定我的 Sencha Touch 是什么版本 运行。以下是一些希望有用的值:
.sencha/app/sencha.cfg: app.cmd.version=6.0.0.202
.sencha/workspace/sencha.cfg: workspace.cmd.version=5.0.3.324
touch/cmd/sencha.cfg: framework.cmd.version=4.0.5.87
这是完整的构建日志:https://gist.githubusercontent.com/jkndrkn/5fbecd12c3875649687f/raw/sencha-cmd-build-log
发生的错误与 cordova ios 平台文件有关。
我从cordova文件夹中找到了运行 cordova platform remove {platform}
,然后重新添加平台就可以了。 (重新添加,cordova platform add {platform}
)