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

QQ登录

只需一步,快速开始

查看: 1789|回复: 2

[结贴] MAC下打包出错

[复制链接]

5

主题

19

帖子

69

积分

初级会员

Rank: 2

积分
69
QQ
发表于 2016-11-23 20:19:17 | 显示全部楼层 |阅读模式
本帖最后由 achillesvt 于 2016-11-23 22:58 编辑

vm上装了x5下载的mac系统, 然后解压v3.6版本,试着打包简单的记账本案例。 打包android的时候总是出现下面的updateSource错误。
windows10上用v3.6成功打包了我家的APP。 关闭了360, 试过v3.5。 求解答。

更新工程信息:
   ****ERROR****: 子任务 "updateSource" 执行失败。
   ****ERROR****: 任务 "updateProject" 执行失败。
   ****ERROR****: 执行出错:
   ****ERROR****: 错误信息: /var/folders/gj/xjngvx493vg4y4njyc8w_vr00000gn/T/cdd72893-3f12-491d-b9aa-212254ede0bb/genSource.xml:104: updateSource returned: 2
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
   /var/folders/gj/xjngvx493vg4y4njyc8w_vr00000gn/T/cdd72893-3f12-491d-b9aa-212254ede0bb/genSource.xml:104: /var/folders/gj/xjngvx493vg4y4njyc8w_vr00000gn/T/cdd72893-3f12-491d-b9aa-212254ede0bb/genSource.xml:104: updateSource returned: 2
           at com.justep.tools.ant.task.app.UpdateSourceTask.execute(Unknown Source)
           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
           at sun.reflect.GeneratedMethodAccessor4.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: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.utils.BuildHelper.execTask(Unknown Source)
           at com.justep.deploy.app.utils.Builder.main(Unknown Source)
   Caused by: /var/folders/gj/xjngvx493vg4y4njyc8w_vr00000gn/T/cdd72893-3f12-491d-b9aa-212254ede0bb/genSource.xml:104: updateSource returned: 2
           at com.justep.tools.ant.task.app.UpdateSourceTask.a(Unknown Source)
           ... 13 more
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "prepareSource" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: 253
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html

genSource.rar

1.61 KB, 下载次数: 17

5

主题

19

帖子

69

积分

初级会员

Rank: 2

积分
69
QQ
 楼主| 发表于 2016-11-23 22:58:08 | 显示全部楼层
我打开终端看了下具体的输出如下。 求大神帮忙。

2016-11-23 22:32:39 开始复制资源...
2016-11-23 22:32:40 复制资源成功
2016-11-23 22:32:40 开始生成首页...
2016-11-23 22:32:40 生成首页成功
2016-11-23 22:32:40 cordova plugin: cordova-plugin-x-toast,cordova-plugin-inappbrowser,cordova-plugin-app-version,
2016-11-23 22:32:40 Task "compileUI" finished.
2016-11-23 22:32:40 Task "propertyfile" started.
2016-11-23 22:32:40 Updating property file: /Volumes/X5/WeX5_V3.5-mac/model/Native/test/build.properties
2016-11-23 22:32:40 Task "propertyfile" finished.
2016-11-23 22:32:40 Task "delete" started.
2016-11-23 22:32:40 Task "delete" finished.
2016-11-23 22:32:40 Task "mkdir" started.
2016-11-23 22:32:40 Created dir: /Volumes/X5/WeX5_V3.5-mac/model/Native/test/build/www
2016-11-23 22:32:40 Task "mkdir" finished.
2016-11-23 22:32:40 Task "processWWW" started.
2016-11-23 22:32:40 Task "processWWW" finished.
2016-11-23 22:32:40 Task "delete" started.
2016-11-23 22:32:40 Task "delete" finished.
2016-11-23 22:32:40 Task "zip" started.
2016-11-23 22:32:40 Building zip: /Volumes/X5/WeX5_V3.5-mac/model/Native/test/www/www.zip
2016-11-23 22:32:41 Task "zip" finished.
2016-11-23 22:32:41 Task "propertyfile" started.
2016-11-23 22:32:41 Updating property file: /Volumes/X5/WeX5_V3.5-mac/model/Native/test/build.properties
2016-11-23 22:32:41 Task "propertyfile" finished.
2016-11-23 22:32:41 Task "mkdir" started.
2016-11-23 22:32:41 Created dir: /Volumes/X5/WeX5_V3.5-mac/model/Native/test/dist
2016-11-23 22:32:41 Task "mkdir" finished.
2016-11-23 22:32:41 Task "copy" started.
2016-11-23 22:32:41 Copying 1 file to /Volumes/X5/WeX5_V3.5-mac/model/Native/test/dist
2016-11-23 22:32:41 Task "copy" finished.
2016-11-23 22:32:41 Task "copy" started.
2016-11-23 22:32:41 Copying 1 file to /Volumes/X5/WeX5_V3.5-mac/model/Native/test/dist
2016-11-23 22:32:41 Task "copy" finished.
2016-11-23 22:32:41 Target "compileUI" finished.
2016-11-23 22:32:41 Target "checkWWW" started.
2016-11-23 22:32:41 Task "condition" started.
2016-11-23 22:32:41 Task "condition" finished.
2016-11-23 22:32:41 Task "condition" started.
2016-11-23 22:32:41 Task "condition" finished.
2016-11-23 22:32:41 Task "fail" started.
2016-11-23 22:32:41 Task "fail" finished.
2016-11-23 22:32:41 Target "checkWWW" finished.
2016-11-23 22:32:41 Target "cleanBuildSrc" started.
2016-11-23 22:32:41 Task "delete" started.
2016-11-23 22:32:41 Task "delete" finished.
2016-11-23 22:32:41 Task "mkdir" started.
2016-11-23 22:32:41 Created dir: /Volumes/X5/WeX5_V3.5-mac/model/Native/test/build/src
2016-11-23 22:32:41 Task "mkdir" finished.
2016-11-23 22:32:41 Target "cleanBuildSrc" finished.
2016-11-23 22:32:41 Target "copySourceTemplate" started.
2016-11-23 22:32:41 Task "copy" started.
2016-11-23 22:32:41 Copying 451 files to /Volumes/X5/WeX5_V3.5-mac/model/Native/test/build/src
2016-11-23 22:32:42 Copied 154 empty directories to 5 empty directories under /Volumes/X5/WeX5_V3.5-mac/model/Native/test/build/src
2016-11-23 22:32:42 Task "copy" finished.
2016-11-23 22:32:42 Target "copySourceTemplate" finished.
2016-11-23 22:32:42 Target "copySource" started.
2016-11-23 22:32:42 Task "copy" started.
2016-11-23 22:32:42 Copying 2 files to /Volumes/X5/WeX5_V3.5-mac/model/Native/test/build/src
2016-11-23 22:32:42 Task "copy" finished.
2016-11-23 22:32:42 Task "mkdir" started.
2016-11-23 22:32:42 Task "mkdir" finished.
2016-11-23 22:32:42 Target "copySource" finished.
2016-11-23 22:32:42 Target "copyPlugins" started.
2016-11-23 22:32:42 Target "copyPlugins" finished.
2016-11-23 22:32:42 Target "copyWWW" started.
2016-11-23 22:32:42 Task "copy" started.
2016-11-23 22:32:42 Copying 79 files to /Volumes/X5/WeX5_V3.5-mac/model/Native/test/build/src/www
2016-11-23 22:32:42 Task "copy" finished.
2016-11-23 22:32:42 Target "copyWWW" finished.
2016-11-23 22:32:42 Target "updateProject" started.
2016-11-23 22:32:42 Task "chmod" started.
2016-11-23 22:32:42 Task "chmod" finished.
2016-11-23 22:32:42 Task "chmod" started.
2016-11-23 22:32:42 Task "chmod" finished.
2016-11-23 22:32:42 Task "chmod" started.
2016-11-23 22:32:42 Task "chmod" finished.
2016-11-23 22:32:42 Task "chmod" started.
2016-11-23 22:32:42 Task "chmod" finished.
2016-11-23 22:32:42 Task "updateSource" started.
2016-11-23 22:32:44 Please run npm install from this directory:
2016-11-23 22:32:44         /Volumes/X5/WeX5_V3.5-mac/tools/cordova
2016-11-23 22:32:44 Task "updateSource" finished with error.
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/x5app-build4340375896120942115.xml:746: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/x5app-build4340375896120942115.xml:746: updateSource returned: 2
        at com.justep.tools.ant.task.app.UpdateSourceTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor34.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: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 Pack.execTask(Pack.java:42)
        at Pack.access$000(Pack.java:25)
        at Pack$1.run(Pack.java:96)
        at java.lang.Thread.run(Thread.java:745)
Caused by: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/x5app-build4340375896120942115.xml:746: updateSource returned: 2
        at com.justep.tools.ant.task.app.UpdateSourceTask.exec(Unknown Source)
        ... 15 more
2016-11-23 22:32:44 Target "updateProject" finished with error.
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/x5app-build4340375896120942115.xml:746: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/x5app-build4340375896120942115.xml:746: updateSource returned: 2
        at com.justep.tools.ant.task.app.UpdateSourceTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor34.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: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 Pack.execTask(Pack.java:42)
        at Pack.access$000(Pack.java:25)
        at Pack$1.run(Pack.java:96)
        at java.lang.Thread.run(Thread.java:745)
Caused by: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/x5app-build4340375896120942115.xml:746: updateSource returned: 2
        at com.justep.tools.ant.task.app.UpdateSourceTask.exec(Unknown Source)
        ... 15 more
2016-11-23 22:32:44 Build finished with error.
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/x5app-build4340375896120942115.xml:746: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/x5app-build4340375896120942115.xml:746: updateSource returned: 2
        at com.justep.tools.ant.task.app.UpdateSourceTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor34.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: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 Pack.execTask(Pack.java:42)
        at Pack.access$000(Pack.java:25)
        at Pack$1.run(Pack.java:96)
        at java.lang.Thread.run(Thread.java:745)
Caused by: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/x5app-build4340375896120942115.xml:746: updateSource returned: 2
        at com.justep.tools.ant.task.app.UpdateSourceTask.exec(Unknown Source)
        ... 15 more
接收浏览器请求数据:{"event":"reConnection"}
--------------------------------------------------------------------------------
接收浏览器请求数据:{"event":"reConnection"}
--------------------------------------------------------------------------------







看了下...42115.xml文件,在这个地方出错。

        <target name="updateProject" description="更新工程信息">
                <chmod dir="${buildSrcDir}/platforms/android/cordova" perm="ugo+rx" includes="*" />
                <chmod dir="${buildSrcDir}/platforms/ios/cordova" perm="ugo+rx" includes="*" />
                <chmod dir="${buildSrcDir}/platforms/android/cordova" perm="ugo+rx" includes="**/*.sh" />
                <chmod dir="${buildSrcDir}/platforms/ios/cordova" perm="ugo+rx" includes="**/*.sh" />

                <!-- setProperty: iosCompileType, iosPassword -->
                <updateSource justepHome="${justepHome}" targetDir="${buildSrcDir}">
                        <env key="NODE_PATH" file="${nodeBin}" />
                        <env key="ATH" path="${justepHome}/node{envPath}" />
                </updateSource>
        </target>

回复 支持 反对

使用道具 举报

5

主题

19

帖子

69

积分

初级会员

Rank: 2

积分
69
QQ
 楼主| 发表于 2016-11-24 10:07:57 | 显示全部楼层
解决了,好像是在win10下解包以后传到MAC上导致文件完整性遭损引起的。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-22 22:37 , Processed in 0.058694 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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