起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2080|回复: 10

[处理中3] 打包苹果APP时,app-builder中提示错误,打包失败

[复制链接]

28

主题

73

帖子

175

积分

初级会员

Rank: 2

积分
175
QQ
发表于 2016-7-8 09:20:38 | 显示全部楼层 |阅读模式
app-builder中提示错误如下:
2016-07-07 17:10:12 Task "exec" finished with error.
/Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/build/build.xml:120: exec returned: 1
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at com.justep.deploy.app.servlet.Pack.a(Unknown Source)
        at com.justep.deploy.app.servlet.Pack.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
2016-07-07 17:10:12 Target "buildAndroid" finished with error.
/Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/build/build.xml:120: exec returned: 1
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at com.justep.deploy.app.servlet.Pack.a(Unknown Source)
        at com.justep.deploy.app.servlet.Pack.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
2016-07-07 17:10:12 Build finished with error.
/Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/build/build.xml:120: exec returned: 1
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at com.justep.deploy.app.servlet.Pack.a(Unknown Source)
        at com.justep.deploy.app.servlet.Pack.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)

28

主题

73

帖子

175

积分

初级会员

Rank: 2

积分
175
QQ
 楼主| 发表于 2016-7-8 09:59:19 | 显示全部楼层
Studio里日志显示以下错误:
****ERROR****: 子任务 "pack" 执行失败。
****ERROR****: 任务 "packUseAppBuilderServer" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: 执行HTTP请求失败,错误信息:生成app包失败!
错误原因:
错误栈:
exec returned: 1
回复 支持 反对

使用道具 举报

发表于 2016-7-8 13:33:34 | 显示全部楼层
报错信息不完整!看不出!
可以在论坛搜下错误信息,找下类似的帖子,或者把完整的报错信息发来看看!

请问你的mac环境版本和windows WeX5的版本是一致的吗??可以尝试在mac上直接解压个相同版本的WeX5,启动服务,来充当打包服务器!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

28

主题

73

帖子

175

积分

初级会员

Rank: 2

积分
175
QQ
 楼主| 发表于 2016-7-8 14:33:56 | 显示全部楼层
liangyongfei 发表于 2016-7-8 13:33
报错信息不完整!看不出!
可以在论坛搜下错误信息,找下类似的帖子,或者把完整的报错信息发来看看!

windows Wex5是3.4版本的
Mac是3.2.1
回复 支持 反对

使用道具 举报

28

主题

73

帖子

175

积分

初级会员

Rank: 2

积分
175
QQ
 楼主| 发表于 2016-7-8 14:35:28 | 显示全部楼层
liangyongfei 发表于 2016-7-8 13:33
报错信息不完整!看不出!
可以在论坛搜下错误信息,找下类似的帖子,或者把完整的报错信息发来看看!

对应wex5 3.4版本的mac打包服务器有没有下载的
回复 支持 反对

使用道具 举报

28

主题

73

帖子

175

积分

初级会员

Rank: 2

积分
175
QQ
 楼主| 发表于 2016-7-8 14:41:38 | 显示全部楼层
liangyongfei 发表于 2016-7-8 13:33
报错信息不完整!看不出!
可以在论坛搜下错误信息,找下类似的帖子,或者把完整的报错信息发来看看!

Build.log的内容为:
开始......

保存配置信息:

清除编译环境:

复制模版工程:

复制工程:

复制插件:

复制WWW资源:

更新工程信息:

增加插件:
   使用到的插件: [cn.jpush.phonegap.JPushPlugin, cordova-plugin-x-socialsharing, cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, cordova-plugin-crosswalk-webview, cordova-plugin-x-toast, cordova-plugin-inappbrowser, cordova-plugin-app-version, cordova-plugin-x-socialsharing, plugin.http.request]
   开始准备插件参数......
   插件 "cn.jpush.phonegap.JPushPlugin" 参数如下:
        jpush_appkey:255668541c49d7334671b9b9
   插件参数准备完成
   开始安装插件......
   Installing "cn.jpush.phonegap.JPushPlugin" for android
   Installing "cn.jpush.phonegap.JPushPlugin" for ios
   Installing "cordova-plugin-x-socialsharing" for android
   Installing "cordova-plugin-x-socialsharing" for ios
   Installing "cordova-plugin-splashscreen" for android
   Installing "cordova-plugin-splashscreen" for ios
   Installing "cordova-plugin-app-preferences" for android
   Installing "cordova-plugin-app-preferences" for ios
   Installing "cordova-plugin-file" for android
   Installing "cordova-plugin-file" for ios
   Installing "cordova-plugin-file-transfer" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-file-transfer" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-plugin-network-information" for android
   Installing "cordova-plugin-network-information" for ios
   Installing "cordova-plugin-zip" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-zip" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-plugin-inappbrowser" for android
   Installing "cordova-plugin-inappbrowser" for ios
   Installing "cordova-plugin-x-toast" for android
   Installing "cordova-plugin-x-toast" for ios
   Installing "com.justep.cordova.plugin.app.utils" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Dependent plugin "cordova-plugin-file-transfer" already installed on android.
   Dependent plugin "cordova-plugin-network-information" already installed on android.
   Dependent plugin "cordova-plugin-zip" already installed on android.
   Dependent plugin "cordova-plugin-inappbrowser" already installed on android.
   Dependent plugin "cordova-plugin-x-toast" already installed on android.
   Installing "com.justep.cordova.plugin.app.utils" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Dependent plugin "cordova-plugin-file-transfer" already installed on ios.
   Dependent plugin "cordova-plugin-network-information" already installed on ios.
   Dependent plugin "cordova-plugin-zip" already installed on ios.
   Dependent plugin "cordova-plugin-inappbrowser" already installed on ios.
   Dependent plugin "cordova-plugin-x-toast" already installed on ios.
   Installing "cordova-plugin-crosswalk-webview" for android
   The module "ConfigParser" has been factored into "cordova-common". Consider update your plugin hooks.
   The module "xml-helpers" has been factored into "cordova-common". Consider update your plugin hooks.
   Installing "cordova-plugin-crosswalk-webview" for ios
   Installing "cordova-plugin-app-version" for android
   Installing "cordova-plugin-app-version" for ios
   Installing "plugin.http.request" for android
   Installing "plugin.http.request" for ios
   插件安装完成

创建源代码工程:

使用代理服务生成应用包:
   压缩应用源代码......
   上传应用源代码到服务端......
   服务端正在执行......
****ERROR****: 子任务 "pack" 执行失败。
****ERROR****: 任务 "packUseAppBuilderServer" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: 执行HTTP请求失败,错误信息:生成app包失败!
错误原因:
错误栈:
exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html


回复 支持 反对

使用道具 举报

发表于 2016-7-8 16:16:21 | 显示全部楼层
ebei222 发表于 2016-7-8 14:41
Build.log的内容为:
开始......

应该发来打包服务器的日志看看!!
对了!你先把打包服务器更新一下吧!可能版本不一致会出现问题!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

28

主题

73

帖子

175

积分

初级会员

Rank: 2

积分
175
QQ
 楼主| 发表于 2016-7-11 08:43:13 | 显示全部楼层
liangyongfei 发表于 2016-7-8 16:16
应该发来打包服务器的日志看看!!
对了!你先把打包服务器更新一下吧!可能版本不一致会出现问题! ...

打包服务器怎么更新,哪个版本是我的3.4对应的
打包服务的日志如下:
2016-07-11 08:37:46 Build started.
2016-07-11 08:37:47 Task "condition" started.
2016-07-11 08:37:47 Task "condition" finished.
2016-07-11 08:37:47 Task "condition" started.
2016-07-11 08:37:47 Task "condition" finished.
2016-07-11 08:37:47 Task "property" started.
2016-07-11 08:37:47 Task "property" finished.
2016-07-11 08:37:47 Task "property" started.
2016-07-11 08:37:47 Task "property" finished.
2016-07-11 08:37:47 Task "condition" started.
2016-07-11 08:37:47 Task "condition" finished.
2016-07-11 08:37:47 Task "path" started.
2016-07-11 08:37:47 Task "path" finished.
2016-07-11 08:37:47 Task "typedef" started.
2016-07-11 08:37:47 Task "typedef" finished.
2016-07-11 08:37:47 Task "svnSetting" started.
2016-07-11 08:37:47 Task "svnSetting" finished.
2016-07-11 08:37:47 Task "typedef" started.
2016-07-11 08:37:47 Task "typedef" finished.
2016-07-11 08:37:47 Target "clean" started.
2016-07-11 08:37:47 Task "delete" started.
2016-07-11 08:37:47 Deleting directory /Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/build
2016-07-11 08:37:48 Task "delete" finished.
2016-07-11 08:37:48 Task "delete" started.
2016-07-11 08:37:48 Deleting directory /Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/dist
2016-07-11 08:37:48 Task "delete" finished.
2016-07-11 08:37:48 Target "clean" finished.
2016-07-11 08:37:48 Target "mergeResources" started.
2016-07-11 08:37:48 Task "unzip" started.
2016-07-11 08:37:48 Expanding: /Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/upload/src.zip into /Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/build
2016-07-11 08:37:51 Task "unzip" finished.
2016-07-11 08:37:51 Task "chmod" started.
2016-07-11 08:37:51 Task "chmod" finished.
2016-07-11 08:37:51 Task "chmod" started.
2016-07-11 08:37:51 Task "chmod" finished.
2016-07-11 08:37:51 Task "chmod" started.
2016-07-11 08:37:51 Task "chmod" finished.
2016-07-11 08:37:51 Task "chmod" started.
2016-07-11 08:37:51 Task "chmod" finished.
2016-07-11 08:37:51 Task "property" started.
2016-07-11 08:37:51 Task "property" finished.
2016-07-11 08:37:51 Target "mergeResources" finished.
2016-07-11 08:37:51 Target "prepareBuild" started.
2016-07-11 08:37:51 Task "mkdir" started.
2016-07-11 08:37:51 Task "mkdir" finished.
2016-07-11 08:37:51 Task "mkdir" started.
2016-07-11 08:37:51 Created dir: /Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/dist
2016-07-11 08:37:51 Task "mkdir" finished.
2016-07-11 08:37:51 Task "property" started.
2016-07-11 08:37:51 Task "property" finished.
2016-07-11 08:37:51 Task "condition" started.
2016-07-11 08:37:51 Task "condition" finished.
2016-07-11 08:37:51 Task "condition" started.
2016-07-11 08:37:51 Task "condition" finished.
2016-07-11 08:37:51 Task "prepareBuild" started.
2016-07-11 08:37:52 Task "prepareBuild" finished.
2016-07-11 08:37:52 Target "prepareBuild" finished.
2016-07-11 08:37:52 Target "prepareAndroidBuild" started.
2016-07-11 08:37:52 Task "propertyfile" started.
2016-07-11 08:37:52 Creating new property file: /Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/build/platforms/android/ant.properties
2016-07-11 08:37:52 Task "propertyfile" finished.
2016-07-11 08:37:52 Task "copy" started.
2016-07-11 08:37:52 Copying 1 file to /Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/build/platforms/android
2016-07-11 08:37:52 Task "copy" finished.
2016-07-11 08:37:52 Target "prepareAndroidBuild" finished.
2016-07-11 08:37:52 Target "prepareIOSBuild" started.
2016-07-11 08:37:52 Task "exec" started.
2016-07-11 08:37:52 1 identity imported.
2016-07-11 08:37:52 Task "exec" finished.
2016-07-11 08:37:52 Task "copy" started.
2016-07-11 08:37:52 Copying 1 file to /Users/x5/Library/MobileDevice/Provisioning Profiles
2016-07-11 08:37:52 Task "copy" finished.
2016-07-11 08:37:52 Target "prepareIOSBuild" finished.
2016-07-11 08:37:52 Target "buildAndroid" started.
2016-07-11 08:37:52 Task "exec" started.
2016-07-11 08:37:54 Running command: /Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/build/platforms/android/cordova/build --release
2016-07-11 08:37:55 [Error: Please install Android target: "android-22".
2016-07-11 08:37:55
2016-07-11 08:37:55 Hint: Open the SDK manager by running: /Volumes/X5/WeX5/tools/adt-sdk/tools/android
2016-07-11 08:37:55 You will require:
2016-07-11 08:37:55 1. "SDK Platform" for android-22
2016-07-11 08:37:55 2. "Android SDK Platform-tools (latest)
2016-07-11 08:37:55 3. "Android SDK Build-tools" (latest)]
2016-07-11 08:37:55 Error: /Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/build/platforms/android/cordova/build: Command failed with exit code 2
2016-07-11 08:37:55     at ChildProcess.whenDone (/Volumes/X5/WeX5/tools/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
2016-07-11 08:37:55     at ChildProcess.emit (events.js:98:17)
2016-07-11 08:37:55     at maybeClose (child_process.js:756:16)
2016-07-11 08:37:55     at Process.ChildProcess._handle.onexit (child_process.js:823:5)
2016-07-11 08:37:55 Task "exec" finished with error.
/Volumes/X5/WeX5/model/Native/.workspace/C710B5EC85400001BDB217B53B0014E3/build/build.xml:120: exec returned: 1
回复 支持 反对

使用道具 举报

发表于 2016-7-11 15:46:05 | 显示全部楼层
ebei222 发表于 2016-7-11 08:43
打包服务器怎么更新,哪个版本是我的3.4对应的
打包服务的日志如下:
2016-07-11 08:37:46 Build started ...

出现这个:Please install Android target: "android-22".
就可以确定是因为打包服务器版本和本地不一致导致的了!

建议在mac机器上,下载个相同的mac版本 的wex5,然后解压,启动服务后就可以充当打包服务器了!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

28

主题

73

帖子

175

积分

初级会员

Rank: 2

积分
175
QQ
 楼主| 发表于 2016-7-11 17:43:17 | 显示全部楼层
liangyongfei 发表于 2016-7-11 15:46
出现这个:Please install Android target: "android-22".
就可以确定是因为打包服务器版本和本地不一致 ...

这个问题解决了,但是又出现新问题了:No matching provisioning profiles found: No provisioning profiles matching an applicable signing identity were found
查阅资料显示是“打包过程中选择的iOS mobileproversion配置文件不正确”的原因,可是我的mobileproversion文件生成流程是严格按照操作流程实施的,不知道什么原因
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-25 01:00 , Processed in 0.053601 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表