|
升级到最新的iOS10.12.5,和最新的xcode8.3.3,在使用wex5 3.7对学习项目hello进行苹果平台的app打包时,发生以下错误。请各位大侠能伸以援手,帮忙查看问题怎么解决?我知道大概时因为iOS10系统和wex5 3.7还不大兼容,想知道有没有快速而低成本的解决办法(比如,不需要重新安装低版本的iOS或xcode)。
错误日志如下(只截取了部分日志,完整日志将以附件上传、如果可以上传附件的话):
/Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:186:60: warning: 'ALAssetsLibrary' is deprecated: first deprecated in iOS 9.0 - Use PHPhotoLibrary from the Photos framework instead [-Wdeprecated-declarations]
ALAssetsLibrary* assetsLibrary = [[ALAssetsLibrary alloc] init];
^
In file included from /Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h:15:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetsLibrary.h:80:12: note: 'ALAssetsLibrary' has been explicitly marked deprecated here
@interface ALAssetsLibrary : NSObject {
^
/Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:187:24: warning: 'assetForURL:resultBlock:failureBlock:' is deprecated: first deprecated in iOS 9.0 - Use fetchAssetsWithLocalIdentifiersptions: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLsptions from the Photos framework instead [-Wdeprecated-declarations]
[assetsLibrary assetForURL:url resultBlock:resultBlock failureBlock:failureBlock];
^
In file included from /Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m:20:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h:15:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetsLibrary.h:95:1: note: 'assetForURL:resultBlock:failureBlock:' has been explicitly marked deprecated here
- (void)assetForURLNSURL *)assetURL resultBlockALAssetsLibraryAssetForURLResultBlock)resultBlock failureBlockALAssetsLibraryAccessFailureBlock)failureBlock NS_DEPRECATED_IOS(4_0, 9_0, "Use fetchAssetsWithLocalIdentifiersptions: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLsptions from the Photos framework instead");
^
12 warnings generated.
Libtool /Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/build/device/libCordova.a normal armv7
cd /Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/CordovaLib
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/tao/Downloads/WeX5_V3.7-mac/node:/var/folders/f7/8_pf5pln49387172fmmrhnhc0000gn/T/9d199511-2edc-42c6-9f9b-ff94af39114c/java/jdk1.8-x64/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -L/Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/build/device -filelist /Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/Cordova.LinkFileList -o /Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/build/device/libCordova.a
=== BUILD TARGET hello OF PROJECT hello WITH CONFIGURATION Debug ===
Check dependencies
Signing for "hello" requires a development team. Select a development team in the project editor.
warning: no rule to process file '/Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/hello/Plugins/cordova-plugin-httpd/DDAbstractDatabaseLogger.h' of type sourcecode.c.h for architecture armv7
warning: no rule to process file '/Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/hello/Plugins/plugin.http.request/README' of type text for architecture armv7
warning: no rule to process file '/Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/hello/Plugins/plugin.http.request/HttpRequest/R9HTTPRequest/BSD-LICENSE' of type text for architecture armv7
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
ERROR building one of the platforms: Error: /Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/cordova/build-debug.xcconfig,-project,hello.xcodeproj,ARCHS=armv7 arm64,-target,hello,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/build/sharedpch
Error: /Users/tao/Downloads/WeX5_V3.7-mac/model/Native/hello/build/src/platforms/ios/cordova/build: Command failed with exit code 2
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildIOS" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: 253
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
|
|