iOS 中的胖二进制文件 [英] Fat binaries in iOS

查看:40
本文介绍了iOS 中的胖二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能为 iOS 构建 32 位和 64 位胖"二进制文件?我的理解是这即将到来,但我在 Xcode 的最新更新中看不到明显的方法?

Is it possible yet to build 32bit and 64bit 'fat' binaries for iOS? My understanding was that this was coming down the line but I can't see an obvious way to do it in the latest update to Xcode?

我希望我的应用程序在 5S 上以 64 位模式运行,在 5 及以下(显然)上以 32 位模式运行,

I want my application to run in 64bit mode on 5S and 32bit on 5 and below (obviously),

我确实阅读了文档:

应用程序现在可以在使用标准架构(包括 64 位)"构建设置为 64 位构建时面向 iOS 5.1.1 及更高版本.这会为 App Store 生成一个包含 32 位和 64 位组件的单个二进制文件的存档.在开发和测试过程中,当面向 iOS 5.1.1 设备时,您必须仅构建 32 位(这是 Xcode 中的默认设置).

然而,关于是否可以使用 iOS 7 的目标部署构建 32 位和 64 位胖二进制文件尚不清楚谢谢.

However this is not clear regarding if it's possible to build a 32 and 64bit fat binary with a target deployment of iOS 7 Thanks.

推荐答案

是的,这是可能的.确保首先关闭仅针对活动架构构建".在 XCode 5 中执行此操作并使用标准架构将生成带有 armv7 和 armv7s 代码的二进制文件,因此添加 64 位支持也应如此.

Yes, it's possible. Make sure that you turn off "Build for Active Architecture Only" first. Doing this in XCode 5 and using Standard Architecture will produce a binary with armv7 and armv7s code, so adding 64bit support should do the same.

如果您有任何第三方库,请务必检查支持新设备的更新.

If you have any third party libraries, be sure to check for updates that support the new devices.

这篇关于iOS 中的胖二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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