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

QQ登录

只需一步,快速开始

查看: 2462|回复: 1

[处理中3] IOS打包错误(未在论坛查到解决办法)

[复制链接]

25

主题

79

帖子

239

积分

中级会员

Rank: 3Rank: 3

积分
239
QQ
发表于 2016-6-12 14:38:05 | 显示全部楼层 |阅读模式
1,开发证书、发布证书都配置好了,密码也检查过;
2,iOS Provisioning Profiles的App ID:    ddzjames (cn.ddz.v001)
     和应用包名(cn.ddz.v001)一致;

但是打包还是出错,出错信息如下(内容里*是做了处理):   
。。。。。。。。。。。。。
cd /Users/x5/Documents/x5/model/Native/.workspace/C7163***35F0000168CC519A1951116E/build/platforms/ios
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/x5/Documents/x5/node:/Users/x5/Documents/x5/model/Native/.workspace/java/jdk1.8-x6*/Contents/Home/jre/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
   
Signing Identity:     "iPhone Distribution: Yanhui Liu (DMTZA*C85H)"
Provisioning Profile: "ddzmp"
                      (a885f62e-fd9f-*313-923a-5b2712c1255*)

    /usr/bin/codesign --force --sign 6A2FBFD2386F6D*6AD7870*BEF2D0E826BC8E6AC --entitlements /Users/x5/Documents/x5/model/Native/.workspace/C7163***35F0000168CC519A1951116E/build/platforms/ios/build/对对租.build/Release-iphoneos/对对租.build/对对租.app.xcent --timestamp=none /Users/x5/Documents/x5/model/Native/.workspace/C7163***35F0000168CC519A1951116E/build/platforms/ios/build/device/对对租.app
/Users/x5/Documents/x5/model/Native/.workspace/C7163***35F0000168CC519A1951116E/build/platforms/ios/build/device/对对租.app: User canceled the operation.
Command /usr/bin/codesign failed with exit code 1

** BUILD FAILED **


The following build commands failed:
        CodeSign build/device/对对租.app
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/x5/Documents/x5/model/Native/.workspace/C7163***35F0000168CC519A1951116E/build/platforms/ios/cordova/build-release.xcconfig,-project,对对租.xcodeproj,ARCHS=armv7 arm6*,-target,对对租,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm6*,CONFIGURATION_BUILD_DIR=/Users/x5/Documents/x5/model/Native/.workspace/C7163***35F0000168CC519A1951116E/build/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/x5/Documents/x5/model/Native/.workspace/C7163***35F0000168CC519A1951116E/build/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Users/x5/Documents/x5/model/Native/.workspace/C7163***35F0000168CC519A1951116E/build/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/x5/Documents/x5/model/Native/.workspace/C7163***35F0000168CC519A1951116E/build/platforms/ios/cordova/build: Command failed with exit code 2
****ERROR****: Task "exec" finished with error.
****ERROR****: Target "buildIOS" finished with error.
****ERROR****: Build finished with error.
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html

0

主题

245

帖子

515

积分

高级会员

Rank: 4

积分
515
QQ
发表于 2016-6-12 18:30:04 | 显示全部楼层
本帖最后由 九月书生 于 2016-6-12 18:41 编辑

您好,您的问题应该是由于钥匙串访问受限所允许的!在mac系统中:如果第一次访问从钥匙串导出的证书的时候会弹出一个访问钥匙串的提示框,申请访问钥匙串,点击始终允许就可以了!但是在window上连接mac代理打包的时候或许我们注意不到弹出的提示框,然后没有点击允许,这样mac系统就会拒绝访问钥匙串,这样的话打包是无法成功的。我们可以在mac系统中解锁钥匙串登录,这样就不会存在这个问题了,如图示:不过我们更推举直接在mac上的弹出提示框中点击“始终允许”
F4220FDD-1985-4160-A33A-F418864367AB.png
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-23 01:58 , Processed in 0.057577 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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