导出存档时出错 [英] Error when export archive

查看:81
本文介绍了导出存档时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Xcode中使用导出功能时遇到问题(您的帐户已经有分发证书)所以我使用的解决方案是 xcodebuild 。它产生IPA文件,但我在控制台中看到:

I have problem with using Export function in Xcode ("Your account already have distribution certificate") so I used solution with xcodebuild. It produce IPA file but I see this in console:

### Checking original app
+ /usr/bin/codesign --verify -vvvv /.../My.app
Program /usr/bin/codesign returned 1 : [/.../My.app: resource envelope is obsolete
]
Codesign check fails : /.../My.app: resource envelope is obsolete

是吗我身边的问题以及如何解决?

Is it a problem from my side and how to solve it?

推荐答案

如果您使用的是Mac OSX 10.9.5或更高版本,那么操作系统使用V2签名进行协同处理是一个问题。

If you are using Mac OSX 10.9.5 or later, then there is an issue with OS codesigning with V2 signature.

因此,请使用--no-strict flag with codesign --verify to getover此错误。

So, use --no-strict flag with codesign --verify to getover this error.

如果您正在使用PackageApplication创建.ipa文件,那么

If you're using PackageApplication to create an .ipa file, then

使用vi PackageApplication命令编辑PackageApplication perl脚本工具并更新codeign函数出现以传递--no-strict参数。

Edit the PackageApplication perl script tool using vi PackageApplication command and update codesign function occurrences to pass "--no-strict" parameter.

示例:


my $ result = runCmd(/ usr / bi n / codesign, - 验证, - 无严格
-vvvv,, $ plugin);

my $result = runCmd("/usr/bin/codesign", "--verify", "--no-strict", "-vvvv", , $plugin );

我面对同样的情况,得到了Apple Dev Team的回复。这个问题已经解决了。

I was facing same and got following response from Apple Dev Team. The issue is resolved for me.


命令行工具codesign在10.9.5和10.10中已更改,您需要传递--no-strict选项命令,(问题已报告并将被修复)。
要解决此问题,请保存一份副本并修改PackageApplication以将-no-strict传递给codesign,您可以通过运行以下命令找到PackageApplication: -
xcrun -sdk iphoneos -f PackageApplication

The command line tool "codesign" has changed in 10.9.5 and 10.10, you need to pass "--no-strict" option to the command, (the problem has been reported and will be fixed). To workaround the problem, please save a copy and modify PackageApplication to pass "—no-strict" to codesign, you can locate PackageApplication by running the following:- xcrun -sdk iphoneos -f PackageApplication

这篇关于导出存档时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆