问题
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.
回答1:
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:
- Verify App ID in iOS provisioning Portal iCloud status (mine is enabled)
- Removed old entitlements from project (I had manually created them)
- 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.
- Clean and Archive
- Select the archive and click on Distribute...
- Save for Enterprise or Ad-Hoc Deployment
- Select your development code signing identity
- Save the bundle to disk - did not check for enterprise
- Drag ipa to TestFlightApp.com builds
At this point, TestFlight accepted the bundle and my testers were able to download!
回答2:
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
回答3:
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,
thanks, Naveen Shan
回答4:
You can use
Distribute...
and Save for Enterprise or Ad-Hoc Deployment
It is same as the old Share...
menu.
来源:https://stackoverflow.com/questions/9642252/xcode-4-3-1-share-archive-option-not-visible