In XCode 5(.1.1) how to I get an IPA for distribution via TestFlight?
- I set the code signing identity and provisioning profiles for the release to my distribution profile
- I build the archive (Select iOS Device from the menu, then Product>Archive), which succeeds.
- I select the archive in the organizer and click "Distribute..."
- I choose "Save for Enterprise or Ad Hoc Deployment
- I choose my distribution profile (same as in 1 above)
- I click export.
- XCode gives an error message
Code signing operation failed
Check that the identity you selected is valid.
What should I do?
Update:
- I deleted my certificates, app ids, and provisioning profiles from the apple dev center, and from my keychain access (locally).
- I recreated the certificates, app id, and ad hoc provisioning profile.
- I synced my info into XCode from the dev center
- I updated the
code signing identity
and provisioning profile
build settings for the project and the target to use the new distribution provisioning profile.
- I archived the project again.
- I clicked distribute in the archive organizer
- i chose ad hoc
- i chose my new ad hoc distribution profile (from above)
- I get the same error
Code signing operation failed
Check that the identity you selected is valid.
(@mohacs suggestion) When I try to validate the archive, I get
No application records were found.
Applications must be ready for upload on iTunes Connect before they can be validated or submitted from within Xcode.
(@threeve suggestion) When I read on Code signing fails for Cordova app (using XCode 5.1.1 and Cordova 3.4.1-0.1.0) to check the (System) Console (thanks @shedd), I am not sure where to look, but under "System Log Queries," I looked in "All Messages," and I see no messages during my attempt to "Distribute".
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…