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.