现在我试图产品>存档我的iOS应用程序提交。然而,我得到以下错误:

AppName配置设置冲突。AppName是为开发自动签名的,但是手动指定了一个冲突的代码签名标识iPhone Distribution。在构建设置编辑器中将代码签名标识值设置为iPhone Developer,或在项目编辑器中切换到手动签名。 在SDK“iOS 10.1”中,产品类型“应用程序”需要代码签名

即使我重新尝试了整个过程来重新创建iOS证书或配置配置文件,情况也不会改变。

我在TARGETS中设置为iOS分发> Code Signing Identity > Release >任何iOS SDK。当我在这里作为iOS开发人员更改设置,并在PROJECTS > Code Signing Identity > Release > Any iOS SDK作为iOS Distribution时,我已成功归档。我想知道是否有必要在目标编辑器中设置为iOS Distribution。如果这是强制性的,请有人告诉我如何解决这个错误。

我的XCode版本是8.1。


当前回答

>签名->检查自动管理签名和选择团队 Build settings -> Signing -> Code Signing Identity -> SET ALL TO "IOS developer"

其他回答

这对我来说非常有效。

步骤1:

选择项目目标—>构建设置。搜索PROVISIONING_PROFILE并删除任何无意义的内容。

步骤2:

取消勾选“自动管理签名”,然后再次勾选并重新选择团队。然后Xcode自行修复导致问题的任何东西。

找到.xcodeproj文件并用文本编辑器打开它

找到下面的字段,并使它们像这样

CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";

Provisioning_profile = "";

Provisioning_profile_specifier = "";

我为这个问题花了整整3个小时,经历了这么多的考验,好长时间都在用头撞墙。

我以前没有遇到过这个问题——我的开发者证书允许我存档每个版本并提交到Appstore。回顾过去,我不知道这是如何实现的,因为我从未使用过分布配置文件。

如果你正在看这个答案,我假设你不仅想开发和存档,还想提交到Appstore。

在我们开始之前,有几件事。

Firstly, make sure to download all the correct certificates onto keychain on your mac, this includes both the Developer and Distribution certificates, which can be found at https://developer.apple.com/account/resources/certificates. If you have been transferred a project from someone else. You will need to create a new certificate specific to that project identifier. Secondly, make sure to have downloaded your provisioning profiles for Development and Distribution for the this specific project - this can done in the 'Profiles' tab on the same page where the certificates are downloaded. Thirdly, make your way to (~\Library\MobileDevice\Provisioning Profiles) and delete all the files inside this folder. As well as going to (~\Library\Developer\Xcode\DerivedData) and deleting all the files in there.

转到项目的主编辑器->项目目标->签名和能力-你应该看到这个屏幕:签名和能力屏幕

一旦您到达这个屏幕,选择调试选项卡,取消勾选“自动管理签名”,并选择开发概要文件。对发布选项卡执行同样的操作,并选择分发概要文件而不是开发概要文件。

这样可以确保将来的任何版本都有正确的配置文件分配给项目。

就我而言,我必须登录苹果开发者网站并重置设备列表。

现在看来,他们要求你每年续订时都这样做,然后才能添加新设备和生成证书。

如果你得到这个错误

应用程序有冲突的配置设置。 App是自动签名的,但配置文件“ID”已手动指定。在构建设置编辑器中将配置配置文件的值设置为“Automatic”,或者在项目编辑器中切换到手动签名。

然后确保你在目标构建设置中有空的PROVISIONING_PROFILE选项: