简体   繁体   English

arm64 armv7 armv7s架构设置

[英]arm64 armv7 armv7s Architectures settings

Criteria: 标准:

  1. iPad only app. 仅iPad应用程序。 Only support iPad 2 or later. 仅支持iPad 2或更高版本。
  2. Want to take advantage of 64 bit code for the latest iPads. 想要利用最新iPad的64位代码。
  3. Min iOS 6. 最低iOS 6。
  4. Xcode 5.02 with iOS 7 SDK (current release) 带有iOS 7 SDK的Xcode 5.02(当前版本)

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时)。

Reference: apple doc 参考: apple doc

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. 附加说明给你。

  1. You can support from Minimum IOS 5.1 您可以从最低IOS 5.1获得支持

  2. 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.

相关问题 警告:架构的armv7 armv7s'不包含所有必需的架构'arm64' - Warning: architectures 'armv7 armv7s' didn't contain all required architectures 'arm64' 构建多个体系结构的框架(arm64,armv7,armv7s) - Build framework for multiple architectures (arm64, armv7, armv7s) 在Armv7,Arv7和arm64中使用Linphone - Use Linphone in Armv7s, Armv7 and arm64 检查依赖项...没有要编译的体系结构(ARCHS = i386,VALID_ARCHS = arm64 armv7s armv7) - Check dependencies… No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7s armv7) 没有要编译的架构(ARCHS = i386,VALID_ARCHS = arm64 armv7 armv7s) - No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7 armv7s) 为armv7,armv7s,arm64,i386和通用构建ffmpeg iOS库 - Building ffmpeg iOS libraries for armv7, armv7s, arm64, i386 and universal 适用于iOS的leptonica 1.69交叉编译(armv7,armv7s和arm64) - leptonica 1.69 crosscompile for iOS (armv7, armv7s and arm64) Worklight 6.0.0.1 iOS Native Library仅适用于ARMv7而不适用于ARMv7和ARM64? - Worklight 6.0.0.1 iOS Native Library only for ARMv7 and not for ARMv7s and ARM64? 适用于armv7,armv7s和arm64的iOS开源构建 - iOS open source build for armv7 , armv7s ,arm64 armv7,armv7s和arm64的ipa存档版本无法安装到iOS 5.1.1设备 - ipa archive build for armv7, armv7s and arm64 cannot be installed to iOS 5.1.1 devices
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM