I am attempting to create an archive .ipa for distribution via testflight. The archive creates, and I choose export, then choose ad hoc, then select my team. However, at this point I get the below screen.
I know that my certificate is valid, as I created an .ipa in xcode 5 with a different provisioning profile about 2 hours before I downloaded xcode 6 GM. I also know that my provisioning profile is valid and connected to said certificate.
Thing is, in xcode 5 it didn't ask for a team; it only asked for a provisioning profile. Now, export asks for a team, which I provide. Also, of course I have a valid iOS Distribution certificate. I'm using it in the build settings to sign my application. Seems like a strange error to get
Any help would be greatly appreciated.
This is what worked for me. Hope it helps
For me the following worked instantly:
Go to keychain access
Delete the trash keys that Xcode or last Mac OS update recovered.
Leave only the "public key" with the "private keys" which contain a litte triangle beside them (which when clicked shows the certificate).
After deleting these thrash keys Xcode 6.0.1. managed to archive a add hoc app for OTA distribution.
This helped me, hope it helps you guys. Gl :)
You have to change your "Code Signing Identity" to "iOS Distribution"
First of all understand that the error message is a BS repurposed message and not accurate to what is happening here. It's not your fault you have wasted so much time on this. This is an example of 1 small flaw in Apple's workflow costing hundreds of thousands of dollars in wasted developer time. But what can we do?
This is technically the same idea as @steventnorris. I wanted to be more clear because I failed recognize and implement his answer. I had to discover this on my own through much trial and error.
For me worked following.
The only way I could generate the AdHoc build (without getting rid of my certificates) was using the command line tool xcbuild as described here:
https://stackoverflow.com/a/25979784/2008167
Here's the short version of what worked for me (naturally I had spent hours trying everything else first):
NOTE: Instructions are for Xcode 6.3.2.
Here's the long, detailed version: