11

I am trying to put my build up for testing on TestFlightApp. In my previous version of xcode, I was able to view the "share" option after archiving, which I used to create the ipa file. The ipa file was uploaded to testflight and everything worked as expected. With the upgrade to xcode 4.3.1, I don't see the share option. I tried using the distribute option and created the ipa. Then when I tried uploading the ipa to testflight, got the following error.

'Invalid IPA: values for key com.apple.developer.ubiquity-kvstore-identifier are mismatched between profile and binary'

can someone help.

user1260340
  • 113
  • 1
  • 5

4 Answers4

5

I know an answer has been provided to this question, but looking at the comments (and my own request having sending me here also) it seems that help might be needed to those like @Yuchen or @Kent in the comments that only have two options in the distribute panel ("Submit to the iOS App Store" and "Export as Xcode Archive"), and can't see the "Save for Enterprise or Ad-Hoc Deployment" option.

If your target includes other targets (e.g. libraries), you should put the "Skip Install" flag to YES in the "sub" target Build settings. This will allow yourself to distribute your archive as an IPA file.

More information can be found on this StackOverflow answer.

Hope this will help, Thibault

Community
  • 1
  • 1
thib_b
  • 119
  • 1
  • 8
4

Here is how I fixed it.

com.apple.developer.ubiquity-kvstore-identifier is specifically for iCloud. See iOS Developer Library. So I used the following procedure:

  1. Verify App ID in iOS provisioning Portal iCloud status (mine is enabled)
  2. Removed old entitlements from project (I had manually created them)
  3. Use the Target editor to enable the entitlements (at the bottom of the Target editor window), matching the App ID iCloud setting, added Container and Keychain Access.
  4. Clean and Archive
  5. Select the archive and click on Distribute...
  6. Save for Enterprise or Ad-Hoc Deployment
  7. Select your development code signing identity
  8. Save the bundle to disk - did not check for enterprise
  9. Drag ipa to TestFlightApp.com builds

At this point, TestFlight accepted the bundle and my testers were able to download!

Kent
  • 1,309
  • 1
  • 13
  • 27
  • 1
    It is very important to add the container, which isn't added by default when you select "Enable Entitlements". Once the container was added (com.company.app) the build uploaded just fine to TestFlight. – TPoschel Mar 13 '12 at 18:59
  • But why when I clicked "Distribute", there is no such option "Save for enterprise ..."? The only two options are "Save Built Products" and "Export as Xcode Archive". I am on Xcode 4.3.1. – Yuchen Wang Mar 23 '12 at 21:48
  • I followed the steps mentioned by Kent and it worked like a charm. The missing part in my case was the set up on the provisioning portal. I had to remove old entitlements. Thank you. – user1260340 Mar 25 '12 at 06:26
  • Same problem as Yuchen has. Any suggestions? – Alex Kievsky Apr 19 '12 at 10:01
  • Just checked, my version if Xcode 4.3.2 (4E2002). Try: (1) Xcode, Create new project (I used tabbed app), you do not need to change anything. (2) Attach device. (3) Run, it should run cleanly. (3) Product -> Archive. I now have "Save for Enterprise or Ad-Hoc Deployment" as the second option in the "Select the method of distribution" dialog box. If it works in this _clean_ project, it may be one of your build settings in your project. – Kent Apr 20 '12 at 12:22
2

In Xcode 4.3.1 there is no "share" option in Archives tab of Organizer to create IPA.

Hence to create IPA just click the available "Distribute" option and select Method - "Save for Enterprise or Ad-Hoc Deployment" then we have an option to save the build in IPA format.

See the Attached Screen Shots,

enter image description here

thanks, Naveen Shan

Naveen Shan
  • 9,082
  • 3
  • 26
  • 43
  • any idea why "Save for Enterprise or Ad-Hoc Deployment" option is absent from the options? I see only "Save Built Products" and "Export as Xcode Archive" on my XCode 4.3.1 – choonkeat Apr 23 '12 at 02:50
  • 1
    answering my own comment question, it was the files listed under "Private" of the "Copy Headers" section https://github.com/RestKit/RestKit/wiki/Xcode-4-Archiving-Issue:--'Does-not-contain-a-single-bundle' – choonkeat Apr 24 '12 at 02:53
0

You can use Distribute... and Save for Enterprise or Ad-Hoc Deployment

It is same as the old Share... menu.

erkanyildiz
  • 12,544
  • 6
  • 45
  • 71