在xCode 6中找到了一个意外的Mach-O头代码:1918975009 [英] Found an unexpected Mach-O header code: 1918975009 in xCode 6

查看:167
本文介绍了在xCode 6中找到了一个意外的Mach-O头代码:1918975009的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

导致错误的原因

Found an unexpected Mach-O header code: 1918975009 in xCode 6

我将我的项目归档为 ad hoc 构建它建立/链接/存档就好了,但当我在 xCode 组织者中并选择导出 - > Ad Hoc

I archived my project to send out as an ad hoc build and it builds/links/archives just fine but when I'm in the xCode organizer and select Export -> Ad Hoc,

我收到错误

Found an unexpected Mach-O header code: 191897500. 


推荐答案

我有同样的错误。在我的情况下,它是由我不小心复制到应用程序资源的通用框架引起的(这是不必要的,因为框架直接合并到iOS AFAIK上的主可执行文件中)。

I had the same error. In my case it was caused by an universal framework that I accidentally copied into the resources of the app (which is unnecessary, since frameworks get merged directly into the main executable on iOS AFAIK).

因此,选择目标,单击Build Phases选项卡,然后查看Copy Bundle Resources列表,查看是否复制了包含桌面架构的库或框架(i386或x86_64)。

So, select your target, click the "Build Phases" tab, and look through the "Copy Bundle Resources" list to see if you copy a library or framework that contains desktop architectures (i386 or x86_64).

最有可能的是,复制这样的文件是错误的,但如果由于某种原因你必须这样做,显然它只能包含iOS兼容架构。

Most likely, copying such a file is wrong, but if for some reason you have to, apparently it can only contain iOS compatible architectures.

这篇关于在xCode 6中找到了一个意外的Mach-O头代码:1918975009的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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