Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode won't choose correct Provisioning Profile

Tags:

xcode

ios

I have an app with a distribution certificate with an app id. I have downloaded the distribution profile into my organizer and set the bundle id in info.plist to the app id. However, when I try to archive the project, I get

Code Sign error: Provisioning profile '...' specifies the Application Identifier '...' which doesn't match the current setting 'mybundleid'.

Xcode is looking at a different provisioning profile and saying it's wrong, but I don't want to look at that provisioning profile, I want it to look at a different one. In Build Settings, it even says "(currently matching...) to my correct provisioning profile, so I don't get what's going on.

I also did try removing the wrong profile, but then it gave me another error that the provisioning profile did not exist.

Does anyone know what I'm missing here? Thanks.

like image 623
SpyMachine Avatar asked Sep 02 '12 19:09

SpyMachine


People also ask

How do I fix failed to create a provisioning profile?

3. How To Fix Xcode Failed To Create Provisioning Profile Error. To fix this error is very easy, just connect your real iOS device such as iPhone to the Mac computer with a USB line, follow the popup screen on the iPhone, then you can select your iOS device in the Set the active scheme drop down list.


1 Answers

I got the same issue last night, worked on it for 5+ hours. I finally figured it out this morning, turned out I was change the build settings of the project, instead of the target in Xcode...

like image 67
devjoe Avatar answered Sep 22 '22 04:09

devjoe