Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode6 error: "No matching provisioning profiles found for application"

I'm trying to submit my iOS app in Xcode6. When I click Submit or Validate in the organizer, a window pops up that says:

Failed to locate or generate matching signing assets:

Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues:

No matching provisioning profiles found for "Applications/MyApp.app”

None of the valid provisioning profiles allowed the specified entitlements: application-identifier, beta-reports-active, keychain-access-groups.

I have created a distribution provisioning profile for this app in the member center and it appears in Xcode. I've looked around and have not found anything online that has told me how to fix this. Can anyone help? Thanks.

Andy

like image 239
Andy Schweig Avatar asked Jan 18 '15 03:01

Andy Schweig


3 Answers

There's a couple possibilities for your issue, but the main causes is what I got from experience as well as other SO answers.

  1. Your certificate or profile is outdated, in which case you have to go and regenerate your profiles again. I had this problem before, but Apple has described (partially) this issue.
  2. You haven't set your profile in the Build Settings/Code Signing area, along with the appropriate certificates. Verify your Team in General/Identity and ensure that your profile is properly set.

    From Xcode 5: Code signing entitlement errors (The image is a bit outdated, but its the same as Xcode 6): Build Settings Code Signing section

  3. You are using a beta version of Xcode.
  4. @jaytrixz states: "I just removed Entitlements.plist in Code Signing Entitlements under Build Settings" which could possibly work. Be sure that your provisioning profiles are configured as well.
like image 140
Nate Lee Avatar answered Nov 15 '22 19:11

Nate Lee


As jaytrixz, wrote in the comments...

"I just removed Entitlements.plist in Code Signing Entitlements under Build Settings "

I did the same and it worked after an hour of trying other things!

like image 41
templeman15 Avatar answered Nov 15 '22 19:11

templeman15


There are a lot of answers here, some have worked for me in the past, but not this time. I'd even created a new provisioning profile but that still did not help. Based on the "None of the valid provisioning profiles allowed the specified entitlements" part of the error I tried the following on a hunch and it worked for me:

1. add and remove a particular Capability

Go to Targets > Capabilities, and turn one on and then off.
I doubt it matters which you choose, I added "Push Notifications" (which I don't need for my app), once it was "ON", I changed it back to "OFF"

enter image description here

2. Archive again

I am now successfully uploading my app to the store.

like image 8
kris Avatar answered Nov 15 '22 21:11

kris