Xcode 6.01存档验证错误:无效的段对齐 [英] Xcode 6.01 Archive validation error: Invalid Segment Alignment

查看:106
本文介绍了Xcode 6.01存档验证错误:无效的段对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直致力于iOS项目仅在Xcode 。部署目标是iOS 8.0。更新到Xcode 6.x后,在我的iPhone 5s和iPhone 6以及模拟器上构建和测试工作正常。但是,当我创建存档并想要验证它时,我收到以下错误:

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 iPhone 6 as well as the simulators works fine. However, when I create an archive and want to validate it, I get the following error:


由于下面列出的问题,存档验证失败。



iTunes Store操作失败。
无效的段对齐。此应用程序没有正确的段对齐,应使用最新版本的Xcode重建。如果您需要进一步的帮助,请联系开发者技术支持。

Archive validation failed due to the issues listed below.

iTunes Store operation failed. Invalid Segment Alignment. This app does not have proper segment alignment and should be rebuilt with the latest version of Xcode. Please contact Developer Technical Support if you need further assistance.

我在过去几天用谷歌搜索了这个问题似乎主要是与其他开发工具相关联,特别是来自Adobe。但是,我只使用Xcode进行开发。

I have googled for the past couple of days and it seems that this problem mostly occurs in connection with other development tools, especially from Adobe. However, I have only used Xcode for development.

这是我到目前为止所尝试的:

This is what I have tried so far:


  • 重新安装Xcode 6.01

  • 打开和关闭Autolayout

  • 将目标从8.0设置为7.1

  • 只需提交存档(没有错误消息,但在Testflight中找不到新版本)

  • Reinstalling Xcode 6.01
  • Turning Autolayout on and off
  • Set target from 8.0 to 7.1
  • Just submit the archive (no error message, but new version is not found in Testflight)

不幸的是,这些都没有工作。我的问题:

Unfortunately, none of this has worked. My questions:


  • 错误信息想告诉我什么?

  • 有没有人有任何想法如何解决这个问题?

非常感谢!

推荐答案

我找到了解决方案。 XCode似乎忘记了我的两个文件(XX.h和XX.c)。这个文件名(扩展名为.o)位于验证第一步的摘要中。

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!

(编辑:对不起,无法将此答案标记为正确答案,将在stackoverflow允许的情况下两天内完成)

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

更详细的说明


  • 按验证时 在管理器中,查看弹出的摘要对话框

  • 如果除了您的应用程序之外还列出了任何.o文件,请返回Xcode并删除相应的.h来自项目的AND .m文件(删除引用就足够了)

  • 通过将它们拖放回项目中重新添加它们

  • 重新编译它应该工作(假设你没有在你的应用程序中使用Adobe Air组件)

  • 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)

(感谢这篇文章的一百万Fynh,你的修复使它最终适合我!)

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

这篇关于Xcode 6.01存档验证错误:无效的段对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆