在iOS版本中缺少X86代码? [英] Missing X86 code in iOS build?

查看:244
本文介绍了在iOS版本中缺少X86代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我突然在几周前工作正常的版本中收到错误和警告 - 我去度假,回来了,没有工作。唯一值得关注的是这个错误:

I'm suddenly getting errors and warnings in a build that was working fine a few weeks ago - I went on holiday, came back, no workie. The only one of concern is this error:

ld: warning: ignoring file /Users/maury/Develop/MARL/ThirdParty/Flurry/libFlurry_4.2.3.a, missing required architecture x86_64 in file /Users/maury/Develop/MARL/ThirdParty/Flurry/libFlurry_4.2.3.a (4 slices)

错误字符串是错误的,它实际上正在寻找其他架构,或者我很困惑它正在尝试做什么。为什么iOS应用程序会寻找x86_64拱门?这与模拟器有关吗?如果是这样,为什么两周前我没有收到此错误?

Either the error string is wrong and it's actually looking for some other architecture, or I'm very confused as to what it's trying to do. Why would an iOS app be looking for a x86_64 arch? Is this something to do with the simulator? If so, why didn't I get this error two weeks ago?

我正在XCode5 / MacOS10.9.x上为iOS7构建

I'm building for iOS7 on XCode5/MacOS10.9.x

推荐答案

如果你将Xcode升级到5.1,你就会得到它,因为你的构建的默认架构现在包括64位,但你的库不支持它,所以它无法链接。

If you upgraded Xcode to 5.1, you are getting that because the default architectures for your build now include 64-bit, but your library doesn't support it, so it can't link.

您可以通过在构建设置中将架构(ARCHS)设置为其他内容来覆盖默认值,可能 $(ARCHS_STANDARD_32_BIT)

You can override the default by setting Architectures (ARCHS) in your build settings to something else, probably $(ARCHS_STANDARD_32_BIT)

这样的事情:

这篇关于在iOS版本中缺少X86代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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