Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode 4.3.1 - Share archive option not visible

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.

like image 751
user1260340 Avatar asked Mar 09 '12 23:03

user1260340


People also ask

Why is archive not available in Xcode?

Why is the Archive menu item grayed out in Xcode ? The Archive menu item may be grayed out in Xcode for any of the following reasons: The Archive action is disabled for your app in the scheme editor's Build pane.

How do I archive items in Xcode?

Click Product -> Archive and wait for the archiving process to complete. The Organizer window should pop up, but if it doesn't, click on Window -> Organizer.

How do I export an Xcode archive?

The Step archives your Xcode project by running the xcodebuild archive command and then exports the archive into an . ipa file with the xcodebuild -exportArchive command. This . ipa file can be shared, installed on test devices, or uploaded to the App Store Connect.


2 Answers

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

like image 92
thib_b Avatar answered Oct 22 '22 09:10

thib_b


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!

like image 33
Kent Avatar answered Oct 22 '22 08:10

Kent