build settings specify a provisioning profile with the UUID

I cannot seem to be able to archive an app on a new computer. I created new provisioning profiles for distribution and development. I created a new Certificate Signing Request. I can build my app on my iPhone, but I cannot archive it. I keep getting the error:

No matching provisioning profiles found Your build settings specify a provisioning profile with the UUID “BD657D9A-...”, however, no such provisioning profile was found. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center.

I tried clicking on "Fix Issue" and it still continues to be an error. I removed my certificates from the keychain and downloaded it again through the development portal and that didn't work. I've tried cleaning, rebuilding, closing Xcode, and those all do not work either. I have tried to do different combinations of Code Signing-> Automatic, as well as choosing my debug provisioning profile to be my development profile I just created in the dev portal, and manually choosing the distribution profile I just created in the dev portal as well. Both do not seem to work. Any other troubleshooting tips? Thanks.


Solution 1:

I'm using XCode 7.2 and saw this problem. Restarting XCode solved this for me. Not sure it will always solve the problem, but you may want to try this first.

Solution 2:

I know its too late to put an answer here but this question comes up at the top after searching this issue. I managed to solve this by selecting the project and in Build settings changed the UUID options to what I wanted.

enter image description here

Solution 3:

If you are now using Xcode 7.2, it appears you will receive this message if you download individual profiles either from the Developer Center or from Xcode > Preferences > Account. Select Team Name and View Details > Provisioning Profiles section. I downloaded individual profiles (I've got several dozen so its hard to find a particular one) and was running into this error. Even if you select Download All after downloading individual profiles, this error still comes up.

You will need to find the Provisioning Profiles and delete them then select Download All. Easiest way is to right click on a profile in an Account's details that is already downloaded and select Show In Finder and delete them all. Then just select Download All and hopefully your profiles will match up to your Code Signing.

See: Xcode 7.2 no matching provisioning profiles found

Solution 4:

I had this issue with Xcode 7.2 and an example I downloaded from a tutorial site, and I tried to run this on my iPhone.

For me this simple solution worked :

1) under 'Build settings' -> 'Code signing' : you'll find the 'hard coded' UUID of the original creator -> change this to 'automatic' for both the debug and release:

enter image description here

2) under 'General' -> 'Identity' -> Team : select your provisioning profile. You can also update the bundle identifier if needed.

enter image description here

3) a 'clean' is always a good idea after such changes, then build

this solved the issue for me!