Xcode 8 无法为 Ad Hoc 分发导出存档构建

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38062099/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:58:39  来源:igfitidea点击:

Xcode 8 can't export archived build for Ad Hoc distribution

xcodead-hoc-distribution

提问by matt

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

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

  • that there are no matching provisioning profiles, and

  • that the existing profiles lack the application-identifier and keychain-access-groups entitlements.

  • 没有匹配的供应曲线,和

  • 现有配置文件缺少application-identifier 和 keychain-access-groups 权利

enter image description here

在此处输入图片说明

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.

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

采纳答案by matt

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

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

  • having a long-standing existing project, and

  • using Xcode 8's new automatic codesigning managementfeature.

  • 一个长期存在的项目,和

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

My solution was to turn off automatic codesigningfor 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.

我的解决方案是关闭此项目的自动协同设计。然后,我能够在 General 目标编辑窗格的 Signing (Debug) 和 Signing (Release) 部分中指定我下载的手动生成的开发配置文件。

enter image description here

在此处输入图片说明

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.

一旦我这样做了,我就能够存档然后导出该存档以供临时分发;在导出过程中,开发配置文件被我之前下载的 Ad Hoc 分发配置文件所取代,一切都很好。

One more thing to be careful of here: do notuse 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.

还有一两件事要小心这里:你使用通配符供应配置文件作为签名(发行版)配置文件,甚至没有手动生成的外卡发展概况。您可以(并且应该)使用开发配置文件,但它必须是专门针对此应用程序的开发配置文件。