Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode has conflicting provisioning settings

I have an Ionic 2 app, which builds and is testable in Xcode 8.2.1 Simulator environment, e.g. iPhone7 (Build Successful).

enter image description here

When I try Archive the app to create an ipa file to set on a device, I follow these instructions. But Product -> Archive is greyed out. So I change the active scheme to Generic iOS Device.

enter image description here

But then when I click Product -> Archive, I get Build Failed.

theWhoZoo has conflicting provisioning settings. theWhoZoo is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.2'

enter image description here

If anyone could advise how I can fix this to build an Archive, I would appreciate it.

like image 566
Richard Avatar asked Mar 19 '17 09:03

Richard


3 Answers

This worked perfectly for me. Give a try :)

Step 1:

Select the Project Target-- > Build Settings. Search PROVISIONING_PROFILE and delete whatever nonsense is there.

Step 2:

Uncheck "Automatically manage signing", then check it again and reselect the Team. Xcode then fix whatever was causing the issue on its own.

like image 109
Mohd Asim Avatar answered Sep 19 '22 09:09

Mohd Asim


The problem is in Code Signing Identity. This is a new problem that showed up on the latest release of Xcode. Go to Code Signing Identity, then add other and type in "iPhone Developer" as shown in the error message and save then this will display.enter image description here

If this does not work show me your General signing. and your Code Signing Identity from both your Project and your Targets

like image 27
Thomas Degroot Avatar answered Sep 18 '22 09:09

Thomas Degroot


The problem is in Code Signing Identity. This is a new problem that showed up on the latest release of Xcode. Go to Code Signing Identity, make all IOS Developer rather that IOS distribution.

like image 24
Ahmed Samir Avatar answered Sep 20 '22 09:09

Ahmed Samir