是否有一个编译器标志指示缺乏armv7s体系结构 [英] Is there a compiler flag to indicate lack of armv7s architecture

查看:190
本文介绍了是否有一个编译器标志指示缺乏armv7s体系结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在出现了iPhone 5和其他armv7s设备,现有(封闭源代码)第三方框架(如Flurry)在没有这种新架构的情况下存在兼容性问题。

With the iPhone 5 and other armv7s devices now appearing, there are compatibility problems with existing (closed-source) 3rd-party frameworks such as Flurry which are built without this newer architecture.

一个选项是等待,直到他们发布一个新的构建,但我希望可能有一个编译器标志或我可以使用在我的Xcode项目,这将让链接器知道不要期望armv7s架构从这个框架,并使用armv7。

One option is to wait until they release a new build, but I was hoping there might be a compiler flag or something I can use in my Xcode project that would let the linker know not to expect armv7s architecture from this framework, and use the armv7 instead. Does anything like this exist?

推荐答案

不可能加载一个不包含目标架构的框架。

It's not possible to load a framework which doesn't include the targeted architecture.

你可以做的只是运送armv7应用程序,直到框架更新。该应用程序仍然可以在iPhone 5上工作,只是不使用它提供的最新性能优化。

What you could do is only ship a armv7 app until the frameworks are updated. The app will still work on the iPhone 5, just don't use the latest performance optimizations it offers.

或者如果你可以没有框架在新架构上可能弱链接它。但是,你需要检查你的代码,如果它加载到任何地方你使用的东西从框架。

Or if you could live without the framework on the new architecture you could weak link it. But then you need to check in your code if it is loaded everywhere you use stuff from the framework.

这篇关于是否有一个编译器标志指示缺乏armv7s体系结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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