gpt4 book ai didi

ios - 我是否需要使用 Mac App Store 上提供的最新可用版本的 Xcode 来构建我的项目以供提交,还是我可以使用旧版本

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:07:13 25 4
gpt4 key购买 nike

我正在阅读应用审查指南,但我无法找到答案的一件事是

"Do I need to build my project with the latest available version of Xcode available on the Mac App Store or can I use the older version "

例如,在撰写本文时,Mac App Store 上可用的当前 Xcode 版本是 Xcode 9.0,所以我需要使用 Swift 4 和 Xcode 9.0 构建我的项目,还是可以使用旧版本(比如 Swift 3.0)? x 和 Xcode 8 或 Xcode 7)。

2012 年 2 月有人问过类似的问题 Do I need the latest version of Xcode to submit apps to the app store? .

但它没有提供明确的答案,而且答案已经超过 5 年了。在那段时间里,可供选择的语言是 objective -C,它的版本比当前的通用语言 Swift 更稳定。

最佳答案

You can use older version of Xcodes (Xcode 8.x) to develop and upload your project build on app store. There is no any such kind of restriction by Apple, that you must use latest Xcode Tool to upload a build on the store

我推荐并作为一个很好的建议,

您应该使用最新版本的 Xcode 工具来使您的应用与最新版本的技术兼容。您应该看到并实现技术上的变化。 Xcode 9 中最重要和主要的更新之一是 - 支持 iPhone-X 设备。要查看您的应用程序界面是否与 iPhone-X 兼容,您必须使用 Xcode 9。Xcode 9(与 iOS 11)中还有许多其他重要更新

这是 Xcode 9 的更新列表:Highlights of Xcode 9

无需转换/更改 Swift 编程语言版本即可提供对最新工具的支持。

Xcode 8.3 & Xcode 9,均支持Swift 3.2版本。因此,如果您当前的项目支持 Swift 3.2 版本,那么您可以轻松使用 Xcode 9.0

如何查看 Xcode 项目的当前 Swift 版本

enter image description here

此外,查看此答案以了解如何使您的项目与 Xcode 9 兼容 - Xcode 9 Swift Language Version (SWIFT_VERSION)

这是来自 Apple 的很好的回答:

Why You Should Use the Latest SDK
使用最新的 SDK 构建可为您的应用提供所有可能的错误修复和新行为。出于兼容性原因,框架不能始终公开改进的行为,除非应用是使用最新的 SDK 构建的。

例如,当首次推出支持 Retina 的 iPad 时,只有使用最新的 iOS SDK 构建的 iPad 应用程序才能通过简单地加载带有 @2x 后缀的图像来创建 Retina 图像。

通过使用最新的 SDK 进行构建,应用表明它们已准备好进行所有 API 改进和错误修复。

关于ios - 我是否需要使用 Mac App Store 上提供的最新可用版本的 Xcode 来构建我的项目以供提交,还是我可以使用旧版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46764683/

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