Xcode 8 无法为 Ad Hoc 分发导出存档构建 [英] Xcode 8 can't export archived build for Ad Hoc distribution

查看:36
本文介绍了Xcode 8 无法为 Ad Hoc 分发导出存档构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试为 Xcode 8 中的 Ad Hoc 分发导出我的存档应用程序时,我收到一条错误消息:

When I try to export my archived app for Ad Hoc distribution in Xcode 8, I get an error message that says:

  • 没有匹配的配置文件,并且

现有配置文件缺少应用程序标识符和钥匙串访问组权利.

有什么问题,我怎样才能让它工作?我曾尝试在开发者会员中心生成 Ad Hoc 分发配置文件,但没有帮助.

What's the trouble, and how can I get this to work? I've tried generating an Ad Hoc distribution profile at the developer member center, but it isn't helping.

推荐答案

我可以归档和导出一个项目,没问题.但是我遇到了这个项目的问题,这是一个项目.因此,我认为这是 Xcode 8 中的一个错误.所以问题似乎是以下因素的组合:

I can archive and export a new project, no problem. But I'm having trouble with this project, which is an old project. Therefore, I think this is a bug in Xcode 8. So the problem appears to be a combination of:

  • 拥有一个长期存在的现有项目,以及

使用 Xcode 8 的新自动代码设计管理功能.

using Xcode 8's new automatic codesigning management feature.

我的解决方案是关闭此项目的自动协同设计.然后,我可以在通用目标编辑窗格的签名(调试)和签名(发布)部分中指定我下载的手动生成的开发配置文件.

My solution was to turn off automatic codesigning for this project. I was then able to specify my downloaded manually generated development profile in both the Signing (Debug) and Signing (Release) sections of the General target editing pane.

一旦我这样做了,我就能够存档然后导出该存档以进行临时分发;在导出过程中,开发配置文件被我之前下载的 Ad Hoc 分发配置文件替换,一切正常.

As soon as I did that, I was able to archive and then export that archive for Ad Hoc distribution; during the export, the development profile was replaced by my previously downloaded Ad Hoc distribution profile, and all was well.

这里还有一点要注意:不要使用通配符配置文件作为签名(发布)配置文件,甚至不要使用手动生成的通配符开发配置文件.您可以(并且应该)使用开发配置文件,但它必须是专门针对此应用的开发配置文件.

One more thing to be careful of here: do not use a wild card provisioning profile as the Signing (Release) profile, not even a manually generated wild card development profile. You can (and should) use a development profile, but it must be a development profile targeted specifically to this app.

这篇关于Xcode 8 无法为 Ad Hoc 分发导出存档构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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