|
项目一直使用的是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也没有问题。 |
|