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

QQ登录

只需一步,快速开始

查看: 2315|回复: 6

[结贴] 【打包错误】依赖性检查错误,打包环境:iOS10&xcode8.3

[复制链接]

3

主题

9

帖子

51

积分

初级会员

Rank: 2

积分
51
QQ
发表于 2017-7-5 15:23:35 | 显示全部楼层 |阅读模式
升级到最新的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
发表于 2017-7-5 16:44:03 | 显示全部楼层
类似于这样
http://bbs.wex5.com/forum.php?mo ... page=1#pid165401929

首先wex5打包只支持xcode7.3.1  
可以先使用wex5打包后!再将源码导入到xcode8里面,重新打包!实现
http://docs.wex5.com/wex5-studio-question-list-2013
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

3

主题

9

帖子

51

积分

初级会员

Rank: 2

积分
51
QQ
 楼主| 发表于 2017-7-7 17:48:27 | 显示全部楼层
这两天下载了wex5官方发布的mac os虚机+wex5环境(具体版本为:Mac OS X 10.11.1,xcode 7.3.1,wex5 3.5)。整套环境下载地址:
http://doc.wex5.com/setup-wex5-app-packing-server/

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=6.0 -g -Wno-sign-conversion -iquote /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-generated-files.hmap -I/Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap -I/Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-project-headers.hmap -I/Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/build/device/include -I/Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources/armv7 -I/Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources -F/Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/build/device -DDEBUG -include /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/build/sharedpch/CordovaLib_Prefix-dxrfniehonetoeewzjorskxfzehe/CordovaLib_Prefix.pch -MMD -MT dependencies -MF /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/CDVTimer.d --serialize-diagnostics /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/CDVTimer.dia -c /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/Classes/CDVTimer.m -o /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/CDVTimer.o
   
   Libtool /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/build/device/libCordova.a normal armv7
       cd /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib
       export IPHONEOS_DEPLOYMENT_TARGET=6.0
       export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Volumes/X5/WeX5/node:/var/folders/gj/xjngvx493vg4y4njyc8w_vr00000gn/T/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/iPhoneOS9.3.sdk -L/Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/build/device -filelist /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/Cordova.LinkFileList -o /Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/build/device/libCordova.a
   
   === BUILD TARGET hello OF PROJECT hello WITH CONFIGURATION Debug ===
   
   Check dependencies
   Code Sign error: No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “com.howa.jp” were found.
   warning: no rule to process file '/Volumes/X5/WeX5/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 '/Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/hello/Plugins/plugin.http.request/HttpRequest/R9HTTPRequest/BSD-LICENSE' of type text for architecture armv7
   
   ** BUILD FAILED **
   
   
   The following build commands failed:
           Check dependencies
   (1 failure)
   Error code 65 for command: xcodebuild with args: -xcconfig,/Volumes/X5/WeX5/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=/Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Volumes/X5/WeX5/model/Native/hello/build/src/platforms/ios/build/sharedpch
   ERROR building one of the platforms: Error: /Volumes/X5/WeX5/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
   Error: /Volumes/X5/WeX5/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
回复 支持 反对

使用道具 举报

3

主题

9

帖子

51

积分

初级会员

Rank: 2

积分
51
QQ
 楼主| 发表于 2017-7-7 17:50:09 | 显示全部楼层
如上所述,还是在对一个非常简单hello案例项目进行打包时,出现依赖性检查失败的错误!请版主给点解决办法的指示,谢谢了~
回复 支持 反对

使用道具 举报

发表于 2017-7-7 18:32:09 | 显示全部楼层
sean_linux 发表于 2017-7-7 17:50
如上所述,还是在对一个非常简单hello案例项目进行打包时,出现依赖性检查失败的错误!请版主给点解决办法 ...

No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “com.howa.jp” were found.

打包的证书  bundleID 和 包名“com.howa.jp” 不一致!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

3

主题

9

帖子

51

积分

初级会员

Rank: 2

积分
51
QQ
 楼主| 发表于 2017-7-13 15:19:22 | 显示全部楼层
谢谢yf版主,十分感谢!it works

另外有个后台部署的问题——后台开发环境是php+mysql,服务器端使用apache http server来部署的,前端使用H5的框架(node.js)来开发。
我想请问一下苹果app打包后,我如何将使用wex5在模式1下打包的iOS app和后台服务端代码,发布到apache http server上?我看了一下,起步所举例子和文档,都是按apache tomcat来进行后台发布的。

如果您有好的建议,请回帖。万分感谢!或QQ我:85789537(加Q请说明是wex5)
回复 支持 反对

使用道具 举报

发表于 2017-7-13 16:07:15 | 显示全部楼层
sean_linux 发表于 2017-7-13 15:19
谢谢yf版主,十分感谢!it works

另外有个后台部署的问题——后台开发环境是php+mysql,服务器端使用apa ...

另一个帖子已经回复,请不要重复发帖!这个帖子没问题就结贴了!
新的问题重现发帖!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-18 07:09 , Processed in 0.072520 second(s), 24 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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