Xcode 6.01 Archive Validation Error: Segment Alignment Incorrect

I work on an iOS project exclusively in Xcode . The deployment objective is iOS 8.0. After upgrading to Xcode 6.x, creating and testing on the iPhone 5 and iPhone 6, as well as simulators, work great. However, when I create the archive and want to check it, I get the following error:

Archive validation failed due to the problems listed below.

Failed to complete iTunes Store operation. Segment alignment incorrect. This application does not have proper segment alignment and needs to be rebuilt with the latest version of Xcode. If you need further assistance, contact the developer technical support.

I've been looking googled in the last couple of days, and it seems that this problem is mainly related to other development tools, especially Adobe. However, I used Xcode for development.

This is what I have tried so far:

  • Reinstall Xcode 6.01
  • Turning the self-timer on and off
  • Set a goal from 8.0 to 7.1
  • Just send the archive (there is no error message, but the new version was not found in Testflight)

Unfortunately, none of this worked. My questions:

  • What error message wants to tell me?
  • Does anyone know how to solve this problem?

Thank you so much!

+7
ios objective-c xcode
source share
3 answers

I have found a solution. Xcode seems to have lost track of my two files (XX.h and XX.c). This file name (with the extension .o) was in the summary of the first verification step.

I deleted the links to both files, added them again, and everything works fine. Hope someone helps!

(Edit: sorry, can't mark this answer as the correct answer, do it in two days when stackoverflow allows me)

More detailed instructions :

  • When you click Confirm in Organizer, look at the Summary dialog box that appears.
  • If there are any .o files in addition to your application, go back to Xcode and remove the corresponding .h AND.m files from your project (removing the link is enough)
  • Re-add them by dragging them back to your project
  • Recompile and it should work (if you are not using Adobe Air components in your application)

(thanks a million for this Fynh post, your fix made it finally work for me!)

+9
source share

In my case, I was introducing an application that included the structure I built, which was a universal wireframe structure created using lipo (for use with both the device and the simulator).

After replacing the universal compiled framework using the compiled framework, the check was successful.

+2
source share

To fix this error, I had to go to the targets / create phases / deploy the Bundle copy resources and delete the empty.cpp file (my error was about the empty.o file)

Hope this helps someone

+1
source share

All Articles