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

QQ登录

只需一步,快速开始

楼主: liangshaohua

[分享] App打包常见报错

  [复制链接]

18

主题

49

帖子

85

积分

初级会员

Rank: 2

积分
85
QQ
发表于 2016-4-28 09:22:40 | 显示全部楼层
The following build commands failed:
        CompileXIB X5/Classes/MainViewController.xib
(1 failure)
Error: /Volumes/X5/WeX5/model/Native/.workspace/C6ECE970EB300001E6A57550E2B04F00/build/platforms/ios/cordova/build: Command failed with exit code 65
    at ChildProcess.whenDone (/Volumes/X5/WeX5/tools/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
回复 支持 反对

使用道具 举报

14

主题

57

帖子

95

积分

初级会员

Rank: 2

积分
95
QQ
发表于 2016-4-29 11:25:53 | 显示全部楼层
flightywxb 发表于 2016-4-27 16:09
有人碰到过下面的ios错误吗 ( 论坛下载的虚拟机“应用打包服务器V3.2.1”中,用最新的WeX5_V3.4-mac.tar.gz ...

同错,解决了吗?
回复 支持 反对

使用道具 举报

14

主题

57

帖子

95

积分

初级会员

Rank: 2

积分
95
QQ
发表于 2016-4-29 11:26:14 | 显示全部楼层
851963851 发表于 2016-4-28 09:22
The following build commands failed:
        CompileXIB X5/Classes/MainViewController.xib
(1 failure)

同错,有解决方法了吗朋友?或者错误原因?
回复 支持 反对

使用道具 举报

14

主题

57

帖子

95

积分

初级会员

Rank: 2

积分
95
QQ
发表于 2016-4-29 11:27:50 | 显示全部楼层
jerryhero 发表于 2016-4-21 21:42
****ERROR****: 子任务 "addPlugins" 执行失败。
****ERROR****: 任务 "addPlugins" 执行失败。
****ERROR* ...

兄弟我一加上QQ插件就会打包错误,请问你怎么解决的
回复 支持 反对

使用道具 举报

8

主题

23

帖子

67

积分

初级会员

Rank: 2

积分
67
QQ
发表于 2016-4-29 14:22:15 | 显示全部楼层
我的好像解决了
我的native下目是以前3.3版本拷贝过来了,刚才删了,直接在3.4环境下新增了一个,是可以的
新增后生成aap时,出现类似“x5证书访问的”提示框,(之前那个生成没提示),选了始终允许,然后就生成成功了
回复 支持 反对

使用道具 举报

2

主题

7

帖子

9

积分

新手上路

Rank: 1

积分
9
QQ
发表于 2016-5-6 09:24:32 | 显示全部楼层

在线等帮助,可以有偿,谢谢了

本帖最后由 rcyboom 于 2016-5-6 09:25 编辑

In file included from /Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/APP/Plugins/com.justep.cordova.plugin.qq/QQ.m:1:
/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/APP/Plugins/com.justep.cordova.plugin.qq/QQ.h:3:9: fatal error: 'TencentOpenAPI/TencentOAuth.h' file not found
#import <TencentOpenAPI/TencentOAuth.h>
        ^
1 error generated.

CompileC build/APP.build/Release-iphoneos/APP.build/Objects-normal/armv7/CDVInAppBrowser.o APP/Plugins/cordova-plugin-inappbrowser/CDVInAppBrowser.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Volumes/X5/WeX5/node:/Volumes/X5/WeX5/model/Native/.workspace/java/jdk1.7-x64/Contents/Home/jre/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -gmodules -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=6.0 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/APP.build/Release-iphoneos/APP.build/APP-generated-files.hmap -I/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/APP.build/Release-iphoneos/APP.build/APP-own-target-headers.hmap -I/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/APP.build/Release-iphoneos/APP.build/APP-all-target-headers.hmap -iquote /Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/APP.build/Release-iphoneos/APP.build/APP-project-headers.hmap -I/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/device/include -I/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/device/usr/local/lib/include -I/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/UninstalledProducts/include -I/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/device -I/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/UninstalledProducts/iphoneos/include -I/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/APP.build/Release-iphoneos/APP.build/DerivedSources/armv7 -I/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/APP.build/Release-iphoneos/APP.build/DerivedSources -F/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/device -FAPPPluginscom.justep.cordova.plugin.qq -FAPPPluginscom.justep.cordova.plugin.alipay -include /Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/sharedpch/APP-Prefix-ctauizyajvworibtqamlplhahupe/APP-Prefix.pch -MMD -MT dependencies -MF /Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/APP.build/Release-iphoneos/APP.build/Objects-normal/armv7/CDVInAppBrowser.d --serialize-diagnostics /Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/APP.build/Release-iphoneos/APP.build/Objects-normal/armv7/CDVInAppBrowser.dia -c /Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/APP/Plugins/cordova-plugin-inappbrowser/CDVInAppBrowser.m -o /Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/APP.build/Release-iphoneos/APP.build/Objects-normal/armv7/CDVInAppBrowser.o

** BUILD FAILED **


The following build commands failed:
        CompileC build/APP.build/Release-iphoneos/APP.build/Objects-normal/armv7/QQ.o APP/Plugins/com.justep.cordova.plugin.qq/QQ.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/cordova/build-release.xcconfig,-project,APP.xcodeproj,ARCHS=armv7 arm64,-target,APP,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/build/sharedpch
Error: /Volumes/X5/WeX5/model/Native/.workspace/C70EBCE03C700001E9DF57B03FB91D00/build/platforms/ios/cordova/build: Command failed with exit code 2
    at ChildProcess.whenDone (/Volumes/X5/WeX5/tools/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
****ERROR****: Task "exec" finished with error.
****ERROR****: Target "buildIOS" finished with error.
****ERROR****: Build finished with error.
****ERROR**** 错误信息: exec returned: 1
****ERROR**** 调用栈:
        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)
回复 支持 反对

使用道具 举报

13

主题

66

帖子

116

积分

初级会员

Rank: 2

积分
116
QQ
发表于 2016-5-6 20:43:59 | 显示全部楼层
开始......
   
保存配置信息:
   
编译UI资源:
   
清除编译环境:
   
复制模版工程:
   
复制工程:
   
复制插件:
   
复制WWW资源:
   
更新工程信息:
   
增加插件:
   使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, cordova-plugin-x-toast, cordova-plugin-inappbrowser, cordova-plugin-app-version]
   开始准备插件参数......
   插件参数准备完成
   开始安装插件......
   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-app-version" for android
   Installing "cordova-plugin-app-version" for ios
   插件安装完成
   
创建源代码工程:
   
android应用环境准备:
   
ios应用环境准备:
   
生成android应用包:
   Running command: cmd "/s /c "E:\WeX5_V3.4\model\Native\宸℃绯荤粺\build\src\platforms\android\cordova\build.bat --release --gradleArg=--offline""
   ANDROID_HOME=E:\WeX5_V3.4/tools/adt-sdk
   JAVA_HOME=E:\WeX5_V3.4/java/jre1.8
   Running: E:\WeX5_V3.4\model\Native\宸℃绯荤粺\build\src\platforms\android\gradlew cdvBuildRelease -b E:\WeX5_V3.4\model\Native\宸℃绯荤粺\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
   ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
   You may not have the required environment or OS to build this project
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   java.io.IOException: 设备未就绪。
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   
   E:\WeX5_V3.4\model\Native\宸℃绯荤粺\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                       ^
   Error code 1 for command: cmd with args: /s /c "E:\WeX5_V3.4\model\Native\宸℃绯荤粺\build\src\platforms\android\gradlew cdvBuildRelease -b E:\WeX5_V3.4\model\Native\宸℃绯荤粺\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
   Error: cmd: Command failed with exit code 1
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html

我也是这个问题,求快点回复
回复 支持 反对

使用道具 举报

13

主题

66

帖子

116

积分

初级会员

Rank: 2

积分
116
QQ
发表于 2016-5-6 20:52:23 | 显示全部楼层
liangshaohua 发表于 2015-11-30 15:31
【Android报错情况五】该报错是因为打包时没有选择资源,却选择了编译资源,所以提示找不到文件。打包时选 ...

请问你的问题解决了吗?我也是这个问题,很急!!!不知道怎么搞
回复 支持 反对

使用道具 举报

13

主题

66

帖子

116

积分

初级会员

Rank: 2

积分
116
QQ
发表于 2016-5-6 20:54:08 | 显示全部楼层
liangshaohua 发表于 2015-11-30 15:31
【Android报错情况五】该报错是因为打包时没有选择资源,却选择了编译资源,所以提示找不到文件。打包时选 ...

找到原因了吗?我也是这个错误
回复 支持 反对

使用道具 举报

13

主题

66

帖子

116

积分

初级会员

Rank: 2

积分
116
QQ
发表于 2016-5-6 20:57:04 | 显示全部楼层
kenminkajp 发表于 2016-3-16 17:01
* Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to ...

请问你的问题解决了吗?我和你的问题一样
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 00:25 , Processed in 0.096598 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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