If you are sure that you have a valid certificate and training profile, you may need to do the following:
I would suggest people update the connection between xCode and the developer account by doing the following:
Go to Xcode → Settings → Account → Details → (refresh icon)
Otherwise, you will not be able to see the preparation profile as an option in the build settings (you can only see old profiles)
Many times this gives me a connection error, you may need to try again.
Make this update every time you edit a training profile or certificate online at the Apple Developer Center.
q8phantom Jul 25 '15 at 8:35 2015-07-25 08:35
source share