Xcode

Xcode苹果公司向开发人员提供的集成开发环境,用于开发macOSiOSiPadOSwatchOStvOSvisionOS的应用进程。

Xcode
运行于Mac OS X 10.6上的Xcode 3.2
开发者苹果公司
当前版本
  • 15.3 (2024年3月5日;稳定版本)[1]
操作系统macOS
类型集成开发环境
许可协议专有软件
网站Apple - Xcode

概述

Xcode前身是继承自NeXTProject Builder

The Xcode suite包含有GNU Compiler Collection自由软件(GCC、LLVM(默认是后者)),并支持C语言C++FortranObjective-CObjective-C++JavaAppleScriptPythonRubySwift,还提供CocoaCarbon以及Java等编程模式。协力厂商更提供了GNU Pascal[2]Free Pascal[3]Ada[4]C#[5]Perl[6]Haskell[7]D语言。Xcode套件使用GDB作为其后台调试工具

从Xcode 3.1开始附带iOS SDK,作为iOS的开发环境。

Xcode 4.0于2011年3月9日正式发行。该版本非Apple开发者注册会员亦能从Mac App Store中付费下载,收取US$4.99的费用。

从Xcode 4.1开始,Mac OS X v10.6Mac OS X v10.7的用户可以从Mac App Store中免费下载。

Xcode最新的版本是Xcode 14.2(每年的WWDC发布大版本更新),支持iOS 14和watchOS 7的开发。同样,可在Mac App Store上免费下载。

版本历史

已停产 目前版本 Beta测试版本

Xcode 1.0-Xcode 2.x(支持iOS之前)

Xcode 3.0-Xcode 4.x

Xcode 5.0-6.x(支持 arm64)

Xcode 7.0-10.x(开放免费部署至实体设备)

Xcode 11.0-14.x(SwiftUI软件框架)

Xcode 15.0 (支持visionOS)

版本历史
版本 Build 发布日期 macOS上的最低版本[48][89] macOS SDK(s)[49][89] 包括iOS SDK[50][89] 包括watchOS[51][89] 包括tvOS[52][89] 包括visionOS[90][89] 注释
15.0 15A240d 2023年9月18日 13.5 14.0 (23A334) iOS 17.0 (21A325) watchOS 10.0 (21R354) tvOS 17.0 (21J351) [91][58]
15.0.1 15A507 2023年10月18日 13.5 14.0 (23A334) iOS 17.0 (21A325) watchOS 10.0 (21R354) tvOS 17.0 (21J351)
版本 Build 发布日期 macOS上的最低版本[48][89] macOS SDK(s)[49][89] 包括iOS SDK[50][89] 包括watchOS[51][89] 包括tvOS[52][89] 包括visionOS[90][89] 注释

事故

XcodeGhost

在2015年9月18日,有人发布消息称发现由某第三方提供的Xcode(即XcodeGhost)包含恶意后门,会使其编译的进程被注入相应的后门用于收集相关使用信息,多个中国大陆发布的软件被该编译器感染。[92][93]有人推测传染方式可能是其作者通过多种社交途径推广其发布的第三方Xcode;[93]也有人分析通过污染迅雷的脱机下载服务使其缓存了染毒版本文档,使只要通过迅雷下载,即使是从官方途径下载也会因为迅雷的CDN机制而染毒。[94]

之后所感染的软件开发者和其他苹果应用开发者相继排查并重新发布无污染版本。迅雷表示其CDN系统的缓存文档无被污染。[94]其事件作者也发表声明称此次为一次错误的实验。[95][96]

根据史诺登(Edward Snowden)揭露文档,美国中情局(CIA)在2012年已有类似攻击手法,即可以通过伪冒Xcode,用来监控所有使用该伪冒开发工具所开发的App及后续的修改版本,而这套伪冒开发工具所开发的App,可以在苹果公司的官方App Store上架并贩售,且不会被任何人员发觉有异常之处。[97]

参考文献

  1. https://developer.apple.com/documentation/xcode-release-notes/xcode-15_3-release-notes; 出版日期: 2024年3月5日.
  2. . [2008-10-30]. (原始内容存档于2012-04-18).
  3. . [2008-10-30]. (原始内容存档于2010-06-12).
  4. . [2008-10-30]. (原始内容存档于2008-12-05).
  5. . [2008-10-30]. (原始内容存档于2015-01-20).
  6. . [2008-10-30]. (原始内容存档于2015-01-20).
  7. . [2008-10-30]. (原始内容存档于2008-07-23).
  8. . [2015-05-02]. (原始内容存档于2016-08-25).
  9. (PDF). [2015-05-02].
  10. (PDF). [2015-05-02].
  11. (PDF). [2015-05-02].
  12. (PDF). [2015-05-02].
  13. . [2015-12-24]. (原始内容存档于2016-08-25). There were several releases of Xcode 3.2.3: with iOS 4.0; with iOS 4.0.1; with iOS 4.0.2 SDK
  14. (PDF). [2015-05-02].
  15. (PDF). [2015-05-02].
  16. . [2015-05-02]. (原始内容存档于2011-07-30).
  17. (PDF). [2015-05-02].
  18. (PDF). [2015-05-02].
  19. . [2015-05-02]. (原始内容存档于2011-09-24).
  20. . [2015-05-02]. (原始内容存档于2021-05-14).
  21. . [2015-05-02]. (原始内容存档于2021-05-14).
  22. . [2015-05-02]. (原始内容存档于2012-02-02).
  23. . [2015-05-02]. (原始内容存档于2012-02-18).
  24. . Mac App Store. [2015-05-02]. (原始内容存档于2012-07-01).
  25. . [2015-05-02]. (原始内容存档于2021-05-14).
  26. (PDF). [2015-05-02].
  27. . Mac App Store. [2015-05-02]. (原始内容存档于2013-07-25).
  28. (PDF). [2015-05-02].
  29. . Mac App Store. [2015-05-02]. (原始内容存档于2013-10-10).
  30. . Mac App Store. [2015-05-02]. (原始内容存档于2014-05-30).
  31. . [2015-12-24]. (原始内容存档于2021-05-14).
  32. . [2015-05-02]. (原始内容存档于2021-05-14).
  33. . [2015-12-24]. (原始内容存档于2016-08-20).
  34. . [2015-05-02].
  35. . [2015-05-02].
  36. . [2015-05-02].
  37. . [2015-05-02].
  38. Developer Portal version
  39. MAS version
  40. LSMinimumSystemVersion from Info.plist
  41. . Apple Developer. [2022-12-21]. (原始内容存档于2020-06-05).
  42. plutil -p Xcode.app/Contents/Info.plist | grep LSMinimumSystemVersion
  43. cd Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/; plutil -p */System/Library/CoreServices/SystemVersion.plist
  44. ls Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ | grep '(.*)'
  45. ls Xcode.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport/ | grep '(.*)'
  46. ls Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/DeviceSupport/ | grep '(.*)'
  47. from preferences -> downloads
  48. plutil -p Xcode.app/Contents/Info.plist | grep LSMinimumSystemVersion
  49. cd Xcode.app/Contents/Developer; cd Platforms/MacOSX.platform/Developer/SDKs/; plutil -p */System/Library/CoreServices/SystemVersion.plist
  50. cd Xcode.app/Contents/Developer; plutil -p Platforms/iPhoneOS.platform/version.plist
  51. cd Xcode.app/Contents/Developer; plutil -p Platforms/WatchOS.platform/version.plist
  52. cd Xcode.app/Contents/Developer; plutil -p Platforms/AppleTVOS.platform/version.plist
  53. . [2020-03-24]. (原始内容存档于2022-04-11).
  54. To see the SwiftUI preview, you need macOS 10.15[53]
  55. . Apple Developer Documentation. Apple Inc. [2019-12-10]. (原始内容存档于2020-06-03).
  56. . Apple Developer Documentation. Apple Inc. [2019-11-04]. (原始内容存档于2020-06-03).
  57. . Apple Developer Documentation. Apple Inc. [2019-12-10]. (原始内容存档于2020-06-03).
  58. . xcodereleases.com. [2019-12-10]. (原始内容存档于2022-05-04).
  59. . Apple Developer Documentation. Apple Inc. [2019-11-10]. (原始内容存档于2020-06-03).
  60. . Apple Developer Documentation. Apple Inc. [2020-01-14]. (原始内容存档于2020-06-03).
  61. . Apple Developer Documentation. Apple Inc. [24 March 2020]. (原始内容存档于2020-05-02).
  62. . Apple Developer Documentation. Apple Inc. [16 April 2020]. (原始内容存档于2020-05-14).
  63. . Apple Developer Documentation. Apple Inc. [20 May 2020].
  64. . Apple Developer Documentation. Apple Inc. [15 July 2020]. (原始内容存档于2022-11-28).
  65. . Apple Developer Documentation. Apple Inc. [26 August 2020]. (原始内容存档于2023-01-14).
  66. . Apple Developer Documentation. Apple Inc. [25 August 2020]. (原始内容存档于2022-12-21).
  67. . Apple Developer Documentation. Apple Inc. [25 September 2020]. (原始内容存档于2022-12-21).
  68. . Apple Developer Documentation. Apple Inc. [October 20, 2020]. (原始内容存档于2022-12-21).
  69. . Apple Developer Documentation. Apple Inc. [October 30, 2020]. (原始内容存档于2022-09-26).
  70. . Apple Developer Documentation. Apple Inc. [November 12, 2020]. (原始内容存档于2022-12-21).
  71. . Apple Developer Documentation. Apple Inc. [December 14, 2020]. (原始内容存档于2022-12-21).
  72. . Apple Developer Documentation. Apple Inc. [January 27, 2021]. (原始内容存档于2022-12-21).
  73. . Apple Developer Documentation. Apple Inc. [April 26, 2021]. (原始内容存档于2022-12-21).
  74. . Apple Developer Documentation. Apple Inc. [June 21, 2021]. (原始内容存档于2023-01-15).
  75. . Apple Developer Documentation. Apple Inc. [September 21, 2021]. (原始内容存档于2022-12-30).
  76. . Apple Developer Documentation. Apple Inc. [October 26, 2021]. (原始内容存档于2022-12-26).
  77. . Apple Developer Documentation. Apple Inc. [December 13, 2021]. (原始内容存档于2022-12-21).
  78. . Apple Developer Documentation. Apple Inc. [December 13, 2021]. (原始内容存档于2022-12-21).
  79. . Apple Inc. [March 15, 2022]. (原始内容存档于2022-12-21).
  80. . Apple Inc. [April 12, 2022]. (原始内容存档于2022-12-21).
  81. . Apple Inc. [May 16, 2022]. (原始内容存档于2022-05-17).
  82. . Apple Inc. [June 3, 2022]. (原始内容存档于2022-12-21).
  83. . Apple Inc. [September 13, 2022]. (原始内容存档于2022-12-21).
  84. . Apple Inc. [September 27, 2022].
  85. . Apple Inc. [November 3, 2022].
  86. . Apple Inc. [December 14, 2022]. (原始内容存档于2022-12-13).
  87. . Apple Inc. [March 31, 2023]. (原始内容存档于2023-02-17).
  88. . Apple Inc. [June 2, 2023]. (原始内容存档于2023-09-13).
  89. cd Xcode.app/Contents/Developer; plutil -p Platforms/XROS.platform/version.plist
  90. . Apple Inc. [September 19, 2023]. (原始内容存档于2023-11-08).
  91. . 网易数码. 2015-09-18 [2015-09-19]. (原始内容存档于2015-09-25).
  92. . 网易数码. 2015-09-18 [2015-09-19]. (原始内容存档于2020-06-03).
  93. 驱动之家. . 搜狐. 2015-09-19 [2015-09-19]. (原始内容存档于2021-05-14).
  94. 冰冰. . 驱动之家. 2015-09-19 [2015-09-19]. (原始内容存档于2021-05-14).
  95. . 网易数码. 2015-09-19 [2015-09-19]. (原始内容存档于2020-12-03).
  96. 黄彦棻. . 电周文化事业. 2015-10-13 [2017-12-13]. (原始内容存档于2021-05-14).

外部链接

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.