Xcode 项目格式:3.1、3.2、6.3 和 8.0 之间有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31455012/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode Project Format: what are the differences between 3.1, 3.2, 6.3 and 8.0?
提问by Para
When I open a project in Xcode 9(or previous versions) and check the File Inspector, there's a section called Project Document, with a combo box named Project Format.
The available options (in Xcode 9) are Xcode 3.1-compatible
, Xcode 3.2-compatible
, Xcode 6.3-compatible
, and Xcode 8.0-compatible
:
当我在Xcode 9(或以前的版本)中打开一个项目并检查文件检查器时,有一个名为 Project Document 的部分,带有一个名为Project Format的组合框。
可用的选项(在Xcode中9)有Xcode 3.1-compatible
,Xcode 3.2-compatible
,Xcode 6.3-compatible
,和Xcode 8.0-compatible
:
What are the differences between those formats?
这些格式之间有什么区别?
-- UPDATE HISTORY (as of 20 May 2019) --
-- 更新历史(截至 2019 年 5 月 20 日)-
I originally asked this question when Xcode 6.4was around.
Xcode 6.4's list included Xcode 3.1-compatible
, Xcode 3.2-compatible
and Xcode 6.3-compatible
, and defaulted to Xcode 3.2-compatible
.
Xcode 7didn't introduce any changes.
Xcode 8added an Xcode 8.0-compatible
item.
Xcode 9changed the default for new projects to Xcode 8.0-compatible
. (8 Oct 2017)
Xcode 10.2added Xcode 9.3-compatible
, Xcode 10.0-compatible
(May 2019)
我最初是在Xcode 6.4 出现时问这个问题的。
Xcode 6.4的列表包括Xcode 3.1-compatible
、Xcode 3.2-compatible
和Xcode 6.3-compatible
,并且默认为Xcode 3.2-compatible
.
Xcode 7没有引入任何更改。
Xcode 8添加了一个Xcode 8.0-compatible
项目。
Xcode 9将新项目的默认设置更改为Xcode 8.0-compatible
. (2017 年 10 月 8 日)添加了
Xcode 10.2Xcode 9.3-compatible
,Xcode 10.0-compatible
(2019 年 5 月)
采纳答案by Jiri Trecak
There does not seem to be any major breaking change in this format change (I tried few of my project, nothing changed in the xml structure itself except the version parameter..).
在这种格式更改中似乎没有任何重大的重大更改(我尝试了很少的项目,除了版本参数之外,xml 结构本身没有任何变化..)。
As far as I remember, there were few project formats before that, some of which actually had major changes, but that is probably not going to happen again because that was in the times of major structural changes to iOS, like from iOS2 to iOS3.
据我所知,在此之前,项目格式很少,其中一些实际上发生了重大变化,但这种情况可能不会再发生,因为那是在 iOS 结构发生重大变化的时代,例如从 iOS2 到 iOS3。
Also, just side note, the default for new projects is still 3.2 so it is very likely that 6.3 is basically for testing and version that they will force later will be -7.
另外,顺便提一下,新项目的默认值仍然是 3.2,所以 6.3 很可能基本上是用于测试,而他们稍后将强制使用的版本是 -7。
My best guess would be that the new format is there for Swift 2 and the way how modules / dependencies are handled in there, as it for sure requires some additional data to be present in the project. But to be 100% sure we would need information from somebody on the Apple Team.
我最好的猜测是 Swift 2 有新格式,以及在那里处理模块/依赖项的方式,因为它肯定需要一些额外的数据存在于项目中。但要 100% 确定我们需要 Apple 团队中某个人的信息。
Hope it helps!
希望能帮助到你!