Failed to perform packaging operation in Xcode 4

When I use Xcode 4 to create an IPA application, I go to Product -> Archive to get Xcode Archive. I recently read a SO post here on how to distribute an app on the AppStore. I followed the instructions in this post and my errors are still persisting.

Xcode Organizer Options for Xcode Archive

First, I start by checking. When I click on the "Confirm" button, I select the correct code signing identifier, and then I get the following error:

Packaging Operation Failed Error

I get the same error message when I try to spread in the AppStore.

Any ideas as to why I cannot share and / or distribute my application?


EDIT

I used to have problems with validation and distribution, and as a result I would get this error:

No Suitable Application Records were found

I fixed this issue by completing CCAT / Encryption registration in iTunes Connect.

+6
source share
8 answers

I got the same error and found this solution (Xcode 4.4).

In the build / code signing settings, I had a "Do not Code Sign" in my first attempt to Archive.

Then I put a valid distribution certificate (in the Release listing), and after archiving the package check went flawlessly.

Thanks to Apple, in each version, something (undocumented) makes something (undocumented) different from the previous version.

Greetings.

+6
source

It’s a few months late, but if someone else comes across this problem and finds this question (like me), and none of the other suggestions work for you. After reading the other answers, there seem to be several reasons for this error.

In my case, this was because my project scheme had an archive build configuration set by Release, not Distribution. After changing this setting to Distribution, I was able to send the application without problems.

Hope this helps someone else.

+2
source

I had a similar situation and standard solutions, such as deleting files with the _ prefix. and certificate experiments did not succeed.

Building the distribution of the English version worked, but there was no localization in Croatian. Therefore, I used heavy weapons. I installed the Croatian keyboard layout. And guess what? From that moment everything worked out!

So maybe there was something else, but I would suggest you at least check if this is appropriate for your situation.

+2
source

Possible error in the profiles of your certificate / security. Here is a brief overview of my certificate quest with Xcode 4.3:

  • Determine (at developer.apple.com) that you have created a distribution certificate
  • Make sure your Xcode app id matches exactly with developer.apple.com
  • Build your app at itunesconnect.apple.com
  • Download the distribution certificate into your keyChain, create a distribution provisioning profile for your application (make sure that you add all devices when creating the provisioning profile).
  • Drag and drop the provisioning profile into the Xcode organizer, under LIBRARY, Provisioning Profiles.
  • Make your archive.
  • In the Xcode organizer, validate your application and then distribute it for ad-hoc.
  • In the end (if you are patient) Xcode will offer to save the IPA somewhere. Save it, put the IPA in a place where your testers can download it.
  • After loading, the tester can drag the IPA to iTunes (LIBRARY) and, ultimately, synchronize the device (if and only if their device UDID was verified when creating / changing the provisioning profile).

More or less. Good luck.

ps. There is a free app in the AppStore, Get UDID. Ask your testers to use this and email you device information, which will save you a ton of frustration with a 40-character device ID.

+1
source

I was lucky when I tried to distribute the application from Xcode DEVELOPER PREVIEW . From the real version of Xcode - everything works fine.

+1
source

I also saw this inexplicable error and tried all the suggestions here without success. I finally went and deleted my local certificates and configuration profiles and downloaded them again from the Apple security website. After making sure that the code signing options were correctly set in my build settings, I cleaned up the project and archived it again, and this time the error disappeared when I started the verification step.

+1
source

Verify that the code signature entries (containing the distribution profile) match both the project and the goal. You can archive a project, even if only the project settings are correct.

+1
source

The answer came to me after trying to confirm my application after unsuccessfully sending it to MacAppStore. I thought that by confirming this, I should get a more detailed error message, instead of this "Packing operation error". And here it is:

enter image description here

And this is because I had to revoke my certificates (as for why I had to cancel them, don’t ask, I don’t know, this happens in every 2 materials ...). And I recreated only the Mac Submission certificate. In fact, you also need Installer. It's late, I thought I really needed this? ... Therefore, I finally did a half-time little dance in Keychain.app -> Request a certificate from a certification authority ... etc., upload to itunesconnect and download them back. After that he worked.

+1
source

Source: https://habr.com/ru/post/917212/


All Articles