Xcode will not select the correct Provisioning Profile

I have an application with a distribution certificate with an application identifier. I uploaded the distribution profile to my organizer and set the package ID in the info.plist file to the application ID. However, when I try to archive the project, I get

Code Sign Error: The Provisioning profile '...' indicates the application identifier "...", which does not match the current parameter "mybundleid".

Xcode looks at another provisioning profile and says that it is wrong, but I do not want to look at this provisioning profile, I want it to look at another. In the build settings, he even says "(currently matching ...) with my correct training profile, so I don’t understand what is going on.

I also tried to delete the wrong profile, but then it gave me another error that the provisioning profile does not exist.

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

+8
ios xcode
source share
4 answers

I have the same problem last night, she worked on it for 5 hours. I finally realized this morning, it turned out that I changed the project build settings, not the goal in Xcode ...

+8
source share

I bet you need to delete all training profiles and add everything you need. It also resolved this case.

+5
source share

Make sure the package ID in the dashboard matches the one used to create the profile in the iPhone Developer Center.

then make sure that the correct profile is selected in the target settings.

+5
source share

I had this problem in Xcode 6. I had two goals in my project, and one of them was always created with the wrong profile, regardless of what I did (including changing the Provisioning profile setting in the build settings).

After several hours of working with him, I noticed the following:

  • A good goal was to use a provisioning profile called "XC: com.mycompanyname.mytargetname1"
  • The broken goal was to use a profile called "XC:". This profile is the profile of "Xcode: Wildcard AppID ()".

I don’t know where it came from, but I decided to fix my problem:

  • Sign in to developer.apple.com
  • Go to certificates, identifiers and profiles
  • Click "All" in the "Profile Profiles" section in the left pane.
  • Click "+"
  • Created a new profile with the name XC: com.mycompanyname.mytargetname2 (NOTE: the settings will be specific to you. The name com.mycompanyname.mytargetname2 should be replaced by your application package identifier.

After that he worked.

+4
source share

All Articles