xcode 5.1中的Arm64架构 [英] Arm64 architecture in xcode 5.1

查看:155
本文介绍了xcode 5.1中的Arm64架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在新的XCode 5.1中,arm64已经成为构建的标准架构之一。

In the new XCode 5.1, arm64 has become among the standard architectures to build for.

然而,在我目前的项目中,我包括尚未支持这种新架构的库(例如Google AdMob) - 这些现在导致链接器错误:

However, in current projects of mine I included libraries (Google AdMob for example) that do not yet support this new architecture - these are now causing linker errors:

ld: symbol(s) not found for architecture arm64

Google AdMob 6.8.0就是据说支持arm64 但我无法确认这一点,除非 cputype(16777228)cpusubtype(0)是arm64? (通过文件命令行工具找到)

Google AdMob 6.8.0 for example is said to be supporting arm64 but I can't really confirm this, unless cputype (16777228) cpusubtype (0) is arm64? (found through the file command-line tool)

libGoogleAdMobAds.a: Mach-O universal binary with 5 architectures
libGoogleAdMobAds.a (for architecture armv7):   current ar archive random library
libGoogleAdMobAds.a (for architecture armv7s):  current ar archive random library
libGoogleAdMobAds.a (for architecture i386):    current ar archive random library
libGoogleAdMobAds.a (for architecture x86_64):  current ar archive random library
libGoogleAdMobAds.a (for architecture cputype (16777228) cpusubtype (0)):   current ar archive random library

有没有办法解决这个问题?

Is there a way to go about this?

推荐答案

暂时摆脱 arm64 并不难。您需要做的就是:

It's not that hard to get rid of arm64 for the time being. all you need to do is to:


  • 编辑目标构建设置即可。更改 架构 的值,打开下拉菜单,点击其他... 并选择它,删除行值 $(ARCHS_STANDARD) 并添加两行值: armv7 armv7s (或 $(ARCHS_STANDARD_32_BIT) nschum 所述,关闭弹出窗口。

  • Edit your target's Build Settings. Change the value for Architectures by opening the drop down, click on Other... and select it, delete the row with value $(ARCHS_STANDARD) and add two rows with values: armv7 and armv7s (or $(ARCHS_STANDARD_32_BIT) as mentioned by nschum), close the popup.

编辑值 有效架构 ,只需删除 arm64 部分内容。

Edit the value Valid Architectures and simply remove the arm64 part of it.

为工作空间或项目中的每个嵌套项目执行此操作。

Do it for every nested project you might have inside your workspace or project.

注意:这不是一个解决方案,只需几个步骤来缓解您当前的问题,请继续关注您的依赖项目,以了解它们何时与arm64兼容并尽快恢复这些设置的更改。

Note: This is not a solution, it's just a few steps to mitigate your current problem, please keep following your dependency projects to find out when they come with arm64 compatibility and revert these settings' change ASAP.

祝你好运

这篇关于xcode 5.1中的Arm64架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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