Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
579 views
in Technique[技术] by (71.8m points)

cordova - How to build IPA for distribution with TestFlight with XCode 5?

In XCode 5(.1.1) how to I get an IPA for distribution via TestFlight?

  1. I set the code signing identity and provisioning profiles for the release to my distribution profile
  2. I build the archive (Select iOS Device from the menu, then Product>Archive), which succeeds.
  3. I select the archive in the organizer and click "Distribute..."
    1. I choose "Save for Enterprise or Ad Hoc Deployment
    2. I choose my distribution profile (same as in 1 above)
    3. I click export.
  4. XCode gives an error message

Code signing operation failed
Check that the identity you selected is valid.

What should I do?

Update:

  1. I deleted my certificates, app ids, and provisioning profiles from the apple dev center, and from my keychain access (locally).
  2. I recreated the certificates, app id, and ad hoc provisioning profile.
  3. I synced my info into XCode from the dev center
  4. I updated the code signing identity and provisioning profile build settings for the project and the target to use the new distribution provisioning profile.
  5. I archived the project again.
  6. I clicked distribute in the archive organizer
  7. i chose ad hoc
  8. i chose my new ad hoc distribution profile (from above)
  9. 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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Thanks to @shedd and @threeve https://stackoverflow.com/a/25212574/1449799 THE ISSUES IS FIXED! Despite being unable to find any error messages in the Console, from www, I removed Gruntfile.js, karma-e2e.conf.js, karma.conf.js, and the entire node_modules directory.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...