天天看點

當我嘗試歸檔以送出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:

最佳方法:設定自動代碼簽名的權限-隻需輸入您的團隊并選中複選框,如下所示:
當我嘗試歸檔以送出iOS應用時,出現沖突的配置設定錯誤

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)才能進行代碼簽名。