[英]arm64 armv7 armv7s Architectures settings
Criteria: 标准:
Should I set both Architectures and Valid architectures to arm64 armv7 armv7s?
我应该将架构和有效架构设置为arm64 armv7 armv7吗?
Xcode 5.0.1 can build your app with both 32-bit and 64-bit binaries included. Xcode 5.0.1可以构建包含32位和64位二进制文件的应用程序。 This combined binary requires a minimum deployment target of iOS 5.1.1 or later.
此组合二进制文件需要iOS 5.1.1或更高版本的最低部署目标。 The 64-bit binary runs only on 64-bit devices running iOS 7.0.3 and later.
64位二进制文件仅在运行iOS 7.0.3及更高版本的64位设备上运行。 If you have an existing app, you should first update your app for iOS 7 and then port it to run on 64-bit processors.
如果您有现有的应用程序,则应首先更新iOS 7的应用程序,然后将其移植到64位处理器上运行。 By updating it first for iOS 7, you can remove deprecated code paths and use modern practices.
通过首先为iOS 7更新它,您可以删除已弃用的代码路径并使用现代实践。 If you're creating a new app, target iOS 7 and compile 32-bit and 64-bit versions of your app.
如果您正在创建新应用程序,请定位iOS 7并编译应用程序的32位和64位版本。
The architecture for 64-bit apps on iOS is almost identical to the architecture for OS X apps, making it easy to create a common code base that runs in both operating systems. iOS上的64位应用程序架构几乎与OS X应用程序的架构相同,因此可以轻松创建在两个操作系统中运行的通用代码库。 Converting a Cocoa Touch app to 64-bit follows a similar transition process as the one for Cocoa apps on OS X. Pointers and some common C types change from 32 bits to 64 bits.
将Cocoa Touch应用程序转换为64位遵循与OS X上的Cocoa应用程序类似的转换过程。指针和一些常见的C类型从32位更改为64位。 Code that relies on the NSInteger and CGFloat types needs to be carefully examined.
需要仔细检查依赖于NSInteger和CGFloat类型的代码。
Start by building the app for the 64-bit runtime, fixing any warnings that occur as well as searching your code for specific 64-bit issues. 首先为64位运行时构建应用程序,修复发生的任何警告以及搜索代码以查找特定的64位问题。 For example:
例如:
Make sure all function calls have a proper prototype. 确保所有函数调用都有适当的原型。 Avoid truncating 64-bit values by accidentally assigning them to a 32-bit data type.
避免意外地将它们分配给32位数据类型来截断64位值。 Ensure that calculations are performed correctly in the 64-bit version of your app.
确保在64位版本的应用程序中正确执行计算。 Create data structures whose layouts are identical in the 32-bit and 64-bit versions of your app (such as when you write a data file to iCloud).
创建数据结构,其布局在应用程序的32位和64位版本中相同(例如,当您将数据文件写入iCloud时)。
Yes. 是。 You can set both architectures for your above criteria.
您可以根据上述标准设置两种体系结构。 But problem is, you should handle code for both cases(32-bit & 64-bit).
但问题是,你应该处理两种情况的代码(32位和64位)。
Note: 注意:
Additional Notes for you. 附加说明给你。
You can support from Minimum IOS 5.1 您可以从最低IOS 5.1获得支持
You can use Xcode 5.0.1 with IOS 7 base SDK 您可以将Xcode 5.0.1与IOS 7基础SDK一起使用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.