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

QQ登录

只需一步,快速开始

查看: 1639|回复: 4

[处理中3] WeX5 3.4版本换为3.8版本,打包报错

[复制链接]

9

主题

40

帖子

108

积分

初级会员

Rank: 2

积分
108
QQ
发表于 2019-3-4 14:28:56 | 显示全部楼层 |阅读模式
项目一直使用的是WeX5 3.5,但最近更新后打包的文件无法提交App Store,提示当前IOS SDK为9.3,目前要求至少为IOS SDK11,猜测是老版本的WeX5内置IOS SDK版本过低导致,所以新下载了WeX5 3.8版本,准备重新打包。

将3.5版本项目中UI2项目拷贝到3.8的UI2中,然后重新打包,项目报错,第一个错误因为新老版本SQLLite本地数据库插件名称不一致导致,将原来的require("cordova!com.brodysoft.sqlitePlugin");  修改为require("cordova!cordova-sqlite-storage");解决,继续打包报下述错误:

ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/arm64/GMPHAsset.dia -c /Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios/ProblemTest/Plugins/com.synconset.imagepicker/GMPHAsset.m -o /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/arm64/GMPHAsset.o
      
      Ld /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/armv7/ProblemTest normal armv7
          cd /Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios
          export IPHONEOS_DEPLOYMENT_TARGET=9.3
          export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/WeX5_V3.8-mac/node:/var/folders/tm/9vxgtr593pjfqg61sv0lj29w0000gn/T/3813c0be-d1f2-4f1b-a24a-c84566c6d14b/java/jdk1.8-x64/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios/build/device -F/Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios/build/device -filelist /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/armv7/ProblemTest.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.3 -dead_strip -Xlinker -no_deduplicate -ObjC -fobjc-arc -fobjc-link-runtime /Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios/build/device/libCordova.a -weak_framework SystemConfiguration -framework CoreTelephony -lz -framework QuartzCore -weak_framework ImageIO -framework CoreLocation -framework AVFoundation -framework QuickLook -framework Foundation -framework Accelerate -framework Security -framework Photos -Xlinker -dependency_info -Xlinker /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/armv7/ProblemTest_dependency_info.dat -o /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/armv7/ProblemTest
      ** ARCHIVE FAILED **
      
      
      The following build commands failed:
              Ld /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/arm64/ProblemTest normal arm64
      (1 failure)
      Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios/cordova/build-debug.xcconfig,-workspace,ProblemTest.xcworkspace,-scheme,ProblemTest,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,ProblemTest.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios/build/sharedpch,-UseModernBuildSystem=0
      
      Ld /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/arm64/ProblemTest normal arm64
          cd /Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios
          export IPHONEOS_DEPLOYMENT_TARGET=9.3
          export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/WeX5_V3.8-mac/node:/var/folders/tm/9vxgtr593pjfqg61sv0lj29w0000gn/T/3813c0be-d1f2-4f1b-a24a-c84566c6d14b/java/jdk1.8-x64/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios/build/device -F/Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios/build/device -filelist /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/arm64/ProblemTest.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.3 -dead_strip -Xlinker -no_deduplicate -ObjC -fobjc-arc -fobjc-link-runtime /Users/WeX5_V3.8-mac/model/Native/ProblemTest/build/src/platforms/ios/build/device/libCordova.a -weak_framework SystemConfiguration -framework CoreTelephony -lz -framework QuartzCore -weak_framework ImageIO -framework CoreLocation -framework AVFoundation -framework QuickLook -framework Foundation -framework Accelerate -framework Security -framework Photos -Xlinker -dependency_info -Xlinker /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/arm64/ProblemTest_dependency_info.dat -o /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/arm64/ProblemTest
      duplicate symbol _KEY_UDID_INSTEAD in:
          /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/arm64/CDVDevice.o
          /Users/sunshine/Library/Developer/Xcode/DerivedData/ProblemTest-ehzwuaurvfkxjqepbyhgrcjmozae/Build/Intermediates/ArchiveIntermediates/ProblemTest/IntermediateBuildFilesPath/ProblemTest.build/Debug-iphoneos/ProblemTest.build/Objects-normal/arm64/LZKeychain.o
      ld: 1 duplicate symbol for architecture arm64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      
   ****ERROR****: 子任务 "exec" 执行失败。
   ****ERROR****: 任务 "buildIOS" 执行失败。
   ****ERROR****: 执行出错:
   ****ERROR****: 错误信息: exec returned: 1
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
   /var/folders/tm/9vxgtr593pjfqg61sv0lj29w0000gn/T/3813c0be-d1f2-4f1b-a24a-c84566c6d14b/pack.xml:122: 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.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)
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: 253
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html

请帮忙查看是什么原因,IOS 开发/发布证书无误,BundleID也没有问题。

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2019-3-5 09:20:56 | 显示全部楼层
xcode用的为什么版本?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

9

主题

40

帖子

108

积分

初级会员

Rank: 2

积分
108
QQ
 楼主| 发表于 2019-3-5 18:47:50 | 显示全部楼层
是在使用WeX5打包的时候报的错,这个对本机安装的Xcode有要求么?是使用了Xcode的某些本地文件?
回复 支持 反对

使用道具 举报

9

主题

40

帖子

108

积分

初级会员

Rank: 2

积分
108
QQ
 楼主| 发表于 2019-3-6 10:35:41 | 显示全部楼层
当前本机安装的XCode版本为 7.3.1
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2019-3-6 14:23:33 | 显示全部楼层
最新的3.8需要用xcode10
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 05:35 , Processed in 0.061608 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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