I have seen a few other questions that addressed this topic but none like mine. Yesterday I innocently added a device to the list of devices.
Question:
I am under the impression that once you add a device, it will now be linked to the provisioning profile. However, I believe it was not linked to one of my distribution profiles. So I went into edit the profile, clicked the checkmark next to the device, and hit submit. This is where the problems began.
I notice two things: I recently renewed my certificate/provisioning profiles about a week ago. Now, it thinks I renewed my provisioning profile yesterday ( or at least it says so in the organiser ).
Also, when I try to build any project I get the awful "No unexpired provisioning profiles found that contain any of the keychain's signing certificates". In the build settings my signing identity shows up under Identities without provisioning profiles. I have read horror stories of people having to tear everything down and rebuild and I hope I don't have to do that here..
Related question:
Code Sign error: No unexpired provisioning profiles found that contain any of the keychain's signing certificates
I came across this today. It turns out that after I cleaned up my devices list (removed a few I'm no longer doing development for) it made some of my development certificates invalid. I deleted those from the provisioning profiles and regenerated them.
For me just hit the "Refresh Button" at the bottom right was the answer !
Hope I can help someone.
I have Xcode 5.1 and i fixed the issue like this
Xcode -> Preferences -> Accounts -> View details -> Refresh button (Bottom Left)
After it was refreshed i clicked done, and the error was gone :)
iOS distribution is such a pain in the ass! This worked for me (follow the steps in this order):
1) in the xcode organizer:
2) in the mac os x keychain:
3) go to developer.apple.com
4) go back to the xcode organizer:
on the popups click the positive button
5) in your xcode project go to the "build settings" tab
6) go back to the xcode organizer:
Today I've installed
Xcode 4.3.2
, and immediately had the same problem! First trying to archive distribution, and after that In a clean new project, trying to run on a device. I fixed both problems.1. For successful distribution I've downloaded and installed my distribution certificate from iOS provisioning portal, after that in Xcode I've setup
Code Signing Identity
correctly. This solved my problem with archiving.2. I had the same problem creating new project and trying to run on device. Again in provisioning portal in
certificates
I've deleted my development cert. Also I deleted all development provision profiles. Also deleted them from organiser. Then I added the device again. Hope this helps!I got this error when I the bundle identifier for my app did not match the provisioning profile I was trying to use with it.