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

QQ登录

只需一步,快速开始

楼主: liangshaohua

[分享] App打包常见报错

  [复制链接]

3

主题

26

帖子

62

积分

内部用户

积分
62
 楼主| 发表于 2015-11-30 15:38:39 | 显示全部楼层
【IOS报错问题五】打包时使用的是自己的MAC环境,没有安装xcode 的命令行工具时,会在日志中输出如下内容:(用X5应用打包服务器不会出现这个问题)

xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer")
does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that
you wish to use for command line developer tools (or see `man xcode-select`)

Cordova can only run in Xcode version 4.6 or greater.
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory
'/Library/Developer/CommandLineTools' is a command line tools instance
回复 支持 反对

使用道具 举报

3

主题

26

帖子

62

积分

内部用户

积分
62
 楼主| 发表于 2015-11-30 15:41:20 | 显示全部楼层
【IOS报错问题六】打包时使用的P12证书和mobileprovision描述文件搞交叉了,不对应时会出现下面的报错。需到苹果帐号里确认使用的mobileprovision描述文件和p12是否是对应的。(参看下图)

=== BUILD TARGET X5 OF PROJECT X5 WITH CONFIGURATION Release ===
Check dependenciesCode Sign error: No code signing identities found: No valid signing
identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'
回复 支持 反对

使用道具 举报

3

主题

26

帖子

62

积分

内部用户

积分
62
 楼主| 发表于 2015-11-30 15:44:34 | 显示全部楼层
【IOS报错问题五】打包时使用的是自己的MAC环境,没有安装xcode 的命令行工具时,会在日志中输出如下内容:(用X5应用打包服务器不会出现这个问题)

xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer")
does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that
you wish to use for command line developer tools (or see `man xcode-select`)

Cordova can only run in Xcode version 4.6 or greater.
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory
'/Library/Developer/CommandLineTools' is a command line tools instance
回复 支持 反对

使用道具 举报

3

主题

26

帖子

62

积分

内部用户

积分
62
 楼主| 发表于 2015-11-30 15:45:53 | 显示全部楼层
【IOS报错问题六】打包时使用的P12证书和mobileprovision描述文件搞交叉了,不对应时会出现下面的报错。需到苹果帐号里确认使用的mobileprovision描述文件和p12是否是对应的。(参看下图)

=== BUILD TARGET X5 OF PROJECT X5 WITH CONFIGURATION Release ===
Check dependenciesCode Sign error: No code signing identities found: No valid signing
identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'
回复 支持 反对

使用道具 举报

3

主题

26

帖子

62

积分

内部用户

积分
62
 楼主| 发表于 2015-11-30 15:46:47 | 显示全部楼层
【IOS报错问题七】打包时出现下面的错误信息“User canceled the operation”,是因为打包服务器的MAC虚拟机上出现了认证的提示对话框(参看下图),需要点一下“始终允许”,该问题一般出现在第一次打iOS的包时,始终允许后再打包时不会再出现该问题。

/Volumes/X5/WeX5/model/Native/.workspace/C6BF5E44D3A000014EF0F6105C7059D0/build/platforms
/ios/build/device/WeX5论坛.app: User canceled the operation.
回复 支持 反对

使用道具 举报

3

主题

26

帖子

62

积分

内部用户

积分
62
 楼主| 发表于 2015-11-30 15:47:19 | 显示全部楼层
【IOS报错问题八】打包时出现下面的错误时,常是因为本机所安装的360之类的杀素软件影响的。需先确认“Cannot run program”后面路径的文件是否存在,如果这个文件没有了,需从版本里恢复一个该文件;如果这个文件有,需先禁用杀毒软件,再打包试一下。

D:\WeX5_V3.2.1\WeX5_V3.2.1\tools\adt-sdk\tools\ant\build.xml:694: Execute failed:
java.io.IOException: Cannot run program "D:\WeX5_V3.2.1\WeX5_V3.2.1\tools\adt-sdk\build-
tools\22.0.1\aapt.exe" (in directory "D:\WeX5_V3.2.1\WeX5_V3.2.1\model\Native\hello2\build
\src\platforms\android\CordovaLib"): CreateProcess error=2, ?????????
回复 支持 反对

使用道具 举报

3

主题

26

帖子

62

积分

内部用户

积分
62
 楼主| 发表于 2015-11-30 15:47:42 | 显示全部楼层
【IOS报错问题九】打包时出现下面的错误时,一般是内存问题。找到平台版本下的studio目录下的studio.ini文件,修改这个配置文件里最后一行“-Xms40m”的值为“-Xms800m”,再重新启动开发工具打包。

[dx] Error occurred during initialization of VM
[dx] Could not reserve enough space for object heap
[dx] Error: Could not create the Java Virtual Machine.
[dx] Error: A fatal exception has occurred. Program will exit.
回复 支持 2 反对 0

使用道具 举报

发表于 2015-12-1 12:01:13 | 显示全部楼层
本帖最后由 liangyongfei 于 2015-12-3 10:00 编辑

IOS报错问题十打包时出现下面的错误时一般是打包服务器空间不够用了
****ERROR****: 子任务 "pack" 执行失败。
****ERROR****: 任务 "packUseAppBuilderServer" 执行失败。
****ERROR****: 执行出错:
****ERROR**** 错误信息: 执行HTTP请求失败,错误信息:生成app包失败!
错误原因:
错误栈:
No space left on device

服务端调用栈:
调用栈: at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:325) at com.justep.deploy.app.servlet.Pack.a

点评

这个问题解决了吗?  发表于 2016-6-25 16:17
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

发表于 2015-12-3 10:06:18 | 显示全部楼层
【Android报错情况六】该报错一般是因杀毒软件删除了这个文件导致:tools\adt-sdk\build-tools\22.0.1\aapt.exe要看有没有这个文件,如果没有,需要重新从压缩包找到相应文件,并且放到对应目录下。

BUILD FAILED
   D:\BeX5_V3.2.1\BeX5_V3.2.1\tools\adt-sdk\tools\ant\build.xml:597: The following error occurred while executing this line:
   D:\BeX5_V3.2.1\BeX5_V3.2.1\tools\adt-sdk\tools\ant\build.xml:649: The following error occurred while executing this line:
   D:\BeX5_V3.2.1\BeX5_V3.2.1\tools\adt-sdk\tools\ant\build.xml:694: Execute failed: java.io.IOException: Cannot run program "D:\BeX5_V3.2.1\BeX5_V3.2.1\tools\adt-sdk\build-tools\22.0.1\aapt.exe" (in directory "D:\BeX5_V3.2.1\BeX5_V3.2.1\model\Native\圣境ERP\build\src\platforms\android\CordovaLib"): CreateProcess error=1, ?????
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
    at java.lang.Runtime.exec(Runtime.java:617)
    at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:41)

qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

发表于 2015-12-25 14:47:00 | 显示全部楼层
【Android报错情况七】该报错一般是为环境变量中设置了java的jdk或adt引起的,,需要把JAVA_HOME ,CATALINA_HOME 等环境变量先去掉
BUILD FAILED
D:\WeX5_V3.2\tools\adt-sdk\tools\ant\build.xml:597: The following error occurred while executing this line:
D:\WeX5_V3.2\tools\adt-sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
D:\WeX5_V3.2\tools\adt-sdk\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.

Total time: 1 second

D:\WeX5_V3.2\model\Native\yjoa\build\C6CF620BA9800001A46613E013601E1A\build\platforms\android\cordova\node_modules\q\q.js:126
                    throw e;
                          ^
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,D:\WeX5_V3.2\model\Native\yjoa\build\C6CF620BA9800001A46613E013601E1A\build\platforms\android\build.xml
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-5 13:21 , Processed in 0.066329 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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