Xcode 6.01 Archive validation error: Invalid Segment Alignment

后端 未结 3 650
渐次进展
渐次进展 2021-01-05 03:03

I have been working on an iOS project solely in Xcode. Deployment target is iOS 8.0. After updating to Xcode 6.x, building and testing on my iPhone 5s and i

相关标签:
3条回答
  • 2021-01-05 03:29

    In my case I was submitting an app that include a framework I had built that was a universal framework - created using lipo (for use with both device and simulator).

    After replacing the universal compiled framework with device compiled framework, validation was successful.

    0 讨论(0)
  • 2021-01-05 03:29

    To fix this bug I had to go Targets / Build Phases / Expand Copy Bundle Resources and remove the empty.cpp file (my error was about a empty.o file)

    Hope this helps someone

    0 讨论(0)
  • 2021-01-05 03:54

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

    I removed the references to both files, added them again and everything works fine. Hope that helps someone!

    (Edit: sorry, cannot flag this answer as the right answer, will do so in two days when stackoverflow lets me)

    More detailed instructions:

    • When pressing "Validate" in the Organizer, look at the "Summary" dialog that pops up
    • If there are any .o files listed in addition to your app, go back to Xcode and remove the corresponding .h AND .m files from your project (removing the reference is sufficient)
    • Re-add them by dragging and dropping them back into your project
    • Recompile and it should work (assuming you're not using Adobe Air components in your app)

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

    0 讨论(0)
提交回复
热议问题