gpt4 book ai didi

iphone - Xcode 5 和 iOS 7 : Architecture and Valid architectures

转载 作者:IT王子 更新时间:2023-10-29 07:31:02 33 4
gpt4 key购买 nike

我正在 Xcode 5 中开始新项目。我想使用 iOS SDK 7 开发应用程序,但部署目标为 iOS 5.0。当我在 Xcode 中创建新项目并尝试将部署目标更改为 5.0 时,我收到了这条消息:

Applications including an arm64 slice are not compatible with versions of iOS
prior to 6.0
Adjust your Architectures build setting to not include arm64 in order to deploy
to releases prior to iOS 6.0.

因此将架构更改为标准(无 64 位)。我编译、运行,但我不太明白刚刚发生了什么。

Xcode 项目build设置中的 ArchitecturesValid architectures 设置有什么区别?
如果我将 Architectures 设置为排除 64 位,当我在 64 位 iPhone 或 iOS 模拟器上运行我的应用程序时会发生什么(我知道它有效,我只是好奇下面发生了什么)?
你能解释一下新的 64 位架构的大困惑吗?

enter image description here

最佳答案

将build设置中的架构设置为Standard architectures(armv7,armv7s)

enter image description here

iPhone 5S 搭载 A7 64 位处理器。来自 apple docs

Xcode can build your app with both 32-bit and 64-bit binaries included. This combined binary requires a minimum deployment target of iOS 7 or later.

Note: A future version of Xcode will let you create a single app that supports the 32-bit runtime on iOS 6 and later, and that supports the 64-bit runtime on iOS 7.

从文档中我理解的是

  • Xcode 可以为单个应用创建 64 位和 32 位二进制文​​件,但部署目标应该是 iOS7。他们说将来会是 iOS 6.0
  • 32 位二进制文​​件可以在 iPhone 5S(64 位处理器)中正常工作。

更新(Xcode 5.0.1)
在 Xcode 5.0.1 中,他们添加了为 iOS 5.1.1 及更高版本创建 64 位二进制文​​件的支持。

Xcode 5.0.1 can build your app with both 32-bit and 64-bit binaries included. This combined binary requires a minimum deployment target of iOS 5.1.1 or later. The 64-bit binary runs only on 64-bit devices running iOS 7.0.3 and later.

更新(Xcode 5.1)
Xcode 5.1 在架构部分进行了重大更改。这answer将为您跟进。 Check this

关于iphone - Xcode 5 和 iOS 7 : Architecture and Valid architectures,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18913906/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com