当我尝试归档以提交iOS应用时,出现冲突的配置设置错误

本文翻译自:I get conflicting provisioning settings error when I try to archive to submit an iOS app

Now I'm trying to Product>Archive my iOS app to submit. 现在,我正在尝试“产品”>“存档我的iOS应用”以提交。 However, I am getting following errors: 但是,出现以下错误:

AppName has conflicting provisioning settings. AppName的配置设置冲突。 AppName is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. AppName将自动签名以进行开发,但是已经手动指定了冲突的代码签名标识iPhone Distribution。 Set the code signing identity value to iPhone Developer in the build settings editor, or switch to manual signing in the project editor.` 在构建设置编辑器中将代码签名标识值设置为iPhone Developer ,或在项目编辑器中切换为手动签名。

Code signing is required for product type 'Application' in SDK 'iOS 10.1'` SDK'iOS 10.1'中产品类型'Application'需要代码签名

The situation won't change even those I've retry a whole process to recreate iOS certificates or provisioning profile. 即使我已经重试了整个过程以重新创建iOS证书或配置文件的情况,这种情况也不会改变。

I was setting as iOS Distribution in TARGETS > Code Signing Identity > Release > Any iOS SDK . 我在“ TARGETS > Code Signing Identity > Release > Any iOS SDK中设置为“ iOS Distribution TARGETS > Code Signing Identity > Release > Any iOS SDK When I changed the setting as iOS Developer here, and changed the setting in PROJECTS > Code Signing Identity > Release > Any iOS SDK as iOS Distribution , I've succeeded in archiving. 当我在此处将设置更改为iOS Developer并在PROJECTS > Code Signing Identity > Release > Any iOS SDK中将设置更改为iOS Distribution ,我已经成功进行了归档。 I'm wondering is it necessary to set as iOS Distribution in the target editor or not. 我想知道是否有必要在目标编辑器中设置为iOS Distribution And if it's mandatory, please someone let me know how can I work around this error. 如果是强制性的,请让我知道如何解决此错误。

My XCode version is 8.1. 我的XCode版本是8.1。


#1楼

参考:https://stackoom.com/question/2Linl/当我尝试归档以提交iOS应用时-出现冲突的配置设置错误


#2楼

将您的代码登录更改为分发证书。


#3楼

You are way over-thinking this. 您对此太想了。 The process is vastly improved and extremely easy in Xcode 8. Take advantage of that fact. 在Xcode 8中,该过程得到了极大的改进并且非常容易。利用这一事实。

Step One : Do not, in any way, shape, or form, attempt to set the Code Signing settings in the Build Settings. 步骤1 :请勿以任何形式或形式尝试在“构建设置”中设置“代码签名”设置。 Don't go near them. 不要靠近他们。 You will absolutely mess this up. 你绝对会把这个搞砸的。 Instead, edit the target and do all the work in the General pane. 而是,编辑目标并在“常规”窗格中完成所有工作。 Best approach: set yourself up for automatic code signing - just enter your Team and check the checkbox, like this: 最佳方法:设置自动代码签名的权限-只需输入您的团队并选中复选框,如下所示:

在此处输入图片说明

Step Two : Make sure you have an iOS Distribution Identity (Certificate). 第二步 :确保您具有iOS发行身份(证书)。 You can check this under Xcode Preferences > Accounts, View Details. 您可以在Xcode偏好设置>帐户,查看详细信息下进行检查。 It would also be a good idea at this time to go to the member center and get yourself an App Store mobile provision for this app, and download and install it. 这时也是一个好主意,请前往会员中心,为自己获取此应用程序的App Store移动供应,然后下载并安装它。

Step Three : Choose "Generic iOS Device" as your Destination, and choose Product > Archive. 第三步 :选择“通用iOS设备”作为目的地,然后选择“产品”>“存档”。 The app will be compiled, the archive is created, and you are now ready to submit to the App Store. 该应用程序将被编译,存档已创建,您现在可以提交给App Store。


#4楼

I had this same error, but I had already checked "Automatically manage signing". 我遇到了同样的错误,但是我已经检查了“自动管理签名”。

The solution was to uncheck it, then check it again and reselect the Team. 解决方案是取消选中它,然后再次检查并重新选择团队。 Xcode then fixed whatever was causing the issue on its own. 然后,Xcode自行修复了导致问题的原因。


#5楼

If you are from Ionic world. 如果您来自离子世界。 You might get a "conflict code signing" error when you in the "archive" stage, as below: 当您处于“存档”阶段时,可能会出现“冲突代码签名”错误,如下所示:

... is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. ...已自动签名以进行开发,但已手动指定了冲突的代码签名标识iPhone发行版。 Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor. 在构建设置编辑器中将代码签名标识值设置为“ iPhone Developer”,或在项目编辑器中切换为手动签名。 Code signing is required for product type 'Application' in SDK 'iOS 10.x' SDK'iOS 10.x'中的产品类型'Application'需要代码签名

In this case, please go to Build Settings/under signing, code signing identity, and select both as iOS Developer, not Distribution. 在这种情况下,请转到“构建设置” /“在签名下”,“代码签名”,然后选择“ iOS开发人员”而不是“发行版”。

Go to the menu: Product/Archive again, then the issue will be fixed. 再次进入菜单:产品/归档,此问题将得到解决。


#6楼

After updating to Xcode 8.3.2 i had the same error with a Cordova project. 更新到Xcode 8.3.2之后,我在Cordova项目中遇到了相同的错误。 I needed to upgrade Cordova (v7.0.0) and the iOS platform (v4.4.0) for code signing to work. 我需要升级Cordova(v7.0.0)和iOS平台(v4.4.0)才能进行代码签名。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值