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

QQ登录

只需一步,快速开始

查看: 2280|回复: 4

[结贴] IOS APP编译异常

[复制链接]

4

主题

8

帖子

32

积分

新手上路

Rank: 1

积分
32
QQ
发表于 2017-10-27 17:34:51 | 显示全部楼层 |阅读模式
IOS打包的证书,密码等参数设置都没有问题。
上周还可以打包,这周就报这个错误了。
看日志说是没有对应的编译环境?但并没有更新系统或xcode。
macOS Sierra 版本10.12.6  
XCode Version 7.3.1 (7D1014)

请问有哪位大大知道怎么解决吗?
下面的日志 项目名称 的 package已做处理。

错误日志如下(完整日志太长,发不了):
   CompileC build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVTimer.o Classes/CDVTimer.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
       cd /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib
       export LANG=en_US.US-ASCII
       export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/WeX5_V3.5-mac/node:/usr/bin:/bin:/usr/sbin:/sbin"
       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -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 -Wshorten-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 /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Cordova-generated-files.hmap -I/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap -I/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Cordova-project-headers.hmap -I/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/build/device/include -I/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/DerivedSources/arm64 -I/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/DerivedSources -F/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/build/device -include /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/build/sharedpch/CordovaLib_Prefix-bpymooxvkfeacbecqxynurppyrzn/CordovaLib_Prefix.pch -MMD -MT dependencies -MF /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVTimer.d --serialize-diagnostics /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVTimer.dia -c /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/Classes/CDVTimer.m -o /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVTimer.o
   
   Libtool build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/armv7/libCordova.a normal armv7
       cd /Applications/WeX5_V3.5-mac/model/Native/我的项目/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:/Applications/WeX5_V3.5-mac/node:/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/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/build/device -filelist /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/armv7/Cordova.LinkFileList -o /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/armv7/libCordova.a
   
   Libtool build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/libCordova.a normal arm64
       cd /Applications/WeX5_V3.5-mac/model/Native/我的项目/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:/Applications/WeX5_V3.5-mac/node:/usr/bin:/bin:/usr/sbin:/sbin"
       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/build/device -filelist /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/Cordova.LinkFileList -o /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/libCordova.a
   
   CreateUniversalBinary /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/build/device/libCordova.a normal armv7\ arm64
       cd /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib
       export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/WeX5_V3.5-mac/node:/usr/bin:/bin:/usr/sbin:/sbin"
       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/armv7/libCordova.a /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/libCordova.a -o /Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/build/device/libCordova.a
   
   === BUILD TARGET  OF PROJECT  WITH CONFIGURATION Release ===
   
   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.xxx.mescd” were found.
   warning: no rule to process file '/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/我的项目/Plugins/phonegap-plugin-barcodescanner/ZXDataMatrixEncoder.h' of type sourcecode.c.h for architecture armv7
   warning: no rule to process file '/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/我的项目/Plugins/phonegap-plugin-barcodescanner/ZXDataMatrixEncoder.h' of type sourcecode.c.h for architecture arm64
   
   ERROR building one of the platforms: Error: /Applications/WeX5_V3.5-mac/model/Native/我的项目/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,/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/cordova/build-release.xcconfig,-project,我的项目.xcodeproj,ARCHS=armv7 arm64,-target,我的项目,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Applications/WeX5_V3.5-mac/model/Native/我的项目/build/src/platforms/ios/build/sharedpch
   Error: /Applications/WeX5_V3.5-mac/model/Native/我的项目/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
发表于 2017-10-27 19:08:36 | 显示全部楼层
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.xxx.mescd” were found.

证书 和 包名 com.xxx.mescd 不匹配吧!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

4

主题

8

帖子

32

积分

新手上路

Rank: 1

积分
32
QQ
 楼主| 发表于 2017-10-27 22:52:13 | 显示全部楼层
搞定了,IOS证书正好今天过期,续了新证书就打包就成功了。
回复 支持 反对

使用道具 举报

34

主题

129

帖子

343

积分

中级会员

Rank: 3Rank: 3

积分
343
QQ
发表于 2017-10-30 13:55:49 | 显示全部楼层
zhou_lion 发表于 2017-10-27 22:52
搞定了,IOS证书正好今天过期,续了新证书就打包就成功了。

我也是用的mac系统,不管是打安卓包还是IOS包,最后编译的时候都会出现updateResource return 1,不知道为啥,我是从官网下的压缩包,然后直接解压放到了桌面,把代码考进去然后打包的
回复 支持 反对

使用道具 举报

发表于 2017-10-30 18:26:45 | 显示全部楼层
2538402839 发表于 2017-10-30 13:55
我也是用的mac系统,不管是打安卓包还是IOS包,最后编译的时候都会出现updateResource return 1,不知道 ...

先打包平台案例试试吧!
另外建议解压在一级目录下!目录太长或许有问题!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-21 20:39 , Processed in 0.061509 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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