跳至內容

Xcode

本頁使用了標題或全文手工轉換
維基百科,自由的百科全書


Xcode
開發者蘋果公司
目前版本
  • 26.4.1(2026年3月16日;穩定版本)[1]
編輯維基數據連結
作業系統macOS
類型整合開發環境
許可協定專有軟件
網站Apple - Xcode

Xcode是蘋果公司向開發人員提供的整合開發環境,用於開發macOS、iOS、iPadOS、watchOS、tvOS和visionOS的應用程式。

概述

[編輯]

Xcode前身是繼承自NeXT的Project Builder。

The Xcode suite包含有GNU Compiler Collection自由軟件(GCC、LLVM(預設是後者)),並支援C語言、C++、Fortran、Objective-C、Objective-C++、Java、AppleScript、Python、Ruby和Swift,還提供Cocoa、Carbon以及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.6和Mac OS X v10.7的用戶可以從Mac App Store中免費下載。

Apple一般於每年的WWDC發布大版本更新。
Xcode最新的穩定版本是Xcode 26.0.1;最新的Beta版本是Xcode 26.1 Beta,與以往不同的是,從Xcode 26開始,Xcode的版本號按照發布年份的下一年來命名。支援iOS 15和watchOS 8的開發。

版本歷史

[編輯]
已停產 目前版本 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 - 16.x (支援visionOS)

[編輯]

Xcode 26 - 27.x(版本號變更)

[編輯]
版本歷史
版本 Build 發布日期 執行所需的最低 macOS 版本[48][89] macOS SDK 版本[49][89] 包含的 iOS SDK 版本[50][89] 包含的 watchOS SDK 版本[51][89] 包含的 tvOS SDK 版本[52][89] 包含的 visionOS SDK 版本[90][89] 註釋
26.0 17A324 2025年9月15日 15.6 26.0 (25A352) iOS 26.0 (23A337) watchOS 26.0 (23R351) tvOS 26.0 (23J351) visionOS 26.0 (23M335) [102][58]
26.0.1 17A400 2025年9月22日 [103][58]
26.1 17B55 2025年11月3日 26.1 (25B74) iOS 26.1 (23B77) watchOS 26.1 (23S34) tvOS 26.1 (23J576) visionOS 26.1 (23N45) [104][58]
26.1.1 17B100 2025年11月11日 [105][58]
26.2 17C52 2025年12月12日 26.2 (25C57) iOS 26.2 (23C53) watchOS 26.2 (23S303) tvOS 26.2 (23K50) visionOS 26.2 (23N301) [106][58]
26.3 17C529 2026年2月20日 26.2 (25C58) iOS 26.2 (23C57) [107][58]
26.4 17E192 2026年3月18日 26.2 26.4 (25E236) iOS 26.4 (23E237) watchOS 26.4 (23T238) tvOS 26.4 (23L236) visionOS 26.4 (23O238) [108][58]
26.4.1 17E202 2026年4月16日 26.4 (25E251) iOS 26.4 (23E252) visionOS 26.4 (23O248) [109][58]
26.5 17F42 2026年5月4日 26.5 (25F70) iOS 26.5 (23F73) watchOS 26.5 (23T570) tvOS 26.5 (23L470) visionOS 26.5 (23O469) [110][58]
26.6 17F113 2026年6月25日 iOS 26.5 (23F81a) [111][58]
27.0 27A266a 2026年9月14日 26.6 27.0 (26A425) iOS 27.0 (24A430) watchOS 27.0 (24R360) tvOS 27.0 (24J360) visionOS 27.0 (24M361) [112][58]
27.1 27A9275 2026年10月15日 iOS 27.1 (24A94232) [113][58]
27.2 27B52 2026年10月29日 27.2 (26B118) iOS 27.2 (24B118) watchOS 27.2 (24S118) tvOS 27.2 (24K122) visionOS 27.2 (24N120) [114][58]
版本 Build 發布日期 執行所需的最低 macOS 版本[48] macOS SDK 版本[49] 包含的 iOS SDK 版本[50] 包含的 watchOS SDK 版本[51] 包含的 tvOS SDK 版本[52] 包含的 visionOS SDK 版本[90] 註釋

事故

[編輯]

XcodeGhost

[編輯]

在2015年9月18日,有人發佈訊息稱發現由某第三方提供的Xcode(即XcodeGhost)包含惡意後門,會使其編譯的程式被注入相應的後門用於收集相關使用訊息,多個中國大陸發佈的軟件被該編譯器感染。[115][116]有人推測傳染方式可能是其作者通過多種社交途徑推廣其發佈的第三方Xcode;[116]也有人分析通過污染迅雷的離線下載服務使其快取了染毒版本檔案,使只要通過迅雷下載,即使是從官方途徑下載也會因為迅雷的CDN機制而染毒。[117]

之後所感染的軟件開發者和其他蘋果應用開發者相繼排查並重新發佈無污染版本。迅雷表示其CDN系統的快取檔案無被污染。[117]其事件作者也發表聲明稱此次為一次錯誤的實驗。[118][119]

根據斯諾登(Edward Snowden)揭露檔案,美國中情局(CIA)在2012年已有類似網絡攻擊手法,即可以透過偽冒Xcode,用來監控所有使用該偽冒開發工具所開發的App及後續的修改版本,而這套偽冒開發工具所開發的App,可以在蘋果公司的官方App Store上架並販售,且不會被任何人員發覺有異常之處。[120]

參考文獻

[編輯]
  1. ^ https://developer.apple.com/documentation/xcode-release-notes/xcode-26_4_1-release-notes.
  2. ^ GNU Pascal and Xcode. [2008-10-30]. (原始內容存檔於2012-04-18). 
  3. ^ Using Free Pascal with Xcode. [2008-10-30]. (原始內容存檔於2010-06-12). 
  4. ^ Tools. [2008-10-30]. (原始內容存檔於2008-12-05). 
  5. ^ CSharpPlugin - cocoa-sharp-dev - Google Code. [2008-10-30]. (原始內容存檔於2015-01-20). 
  6. ^ CamelBones, an Objective-C/Perl bridge for Mac OS X & GNUStep - Home. [2008-10-30]. (原始內容存檔於2015-01-20). 
  7. ^ Haskell Xcode Plugin. [2008-10-30]. (原始內容存檔於2008-07-23). 
  8. ^ 8.0 8.1 iPhone Software Development: Old versions of iPhone SDK. [2015-05-02]. (原始內容存檔於2016-08-25). 
  9. ^ Unauthorized - Apple Developer (PDF). [2015-05-02]. 
  10. ^ Unauthorized - Apple Developer (PDF). [2015-05-02]. 
  11. ^ Unauthorized - Apple Developer (PDF). [2015-05-02]. 
  12. ^ Unauthorized - Apple Developer (PDF). [2015-05-02]. 
  13. ^ Old versions of iPhone SDK. [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. ^ Unauthorized - Apple Developer (PDF). [2015-05-02]. 
  15. ^ Unauthorized - Apple Developer (PDF). [2015-05-02]. 
  16. ^ Xcode. [2015-05-02]. (原始內容存檔於2011-07-30). 
  17. ^ Unauthorized - Apple Developer (PDF). [2015-05-02]. 
  18. ^ Unauthorized - Apple Developer (PDF). [2015-05-02]. 
  19. ^ Mac App Store - Xcode. [2015-05-02]. (原始內容存檔於2011-09-24). 
  20. ^ How to Install Older iOS Simulators in XCode 4.2.1 (SDK5.0). [2015-05-02]. (原始內容存檔於2021-05-14). 
  21. ^ iphone - Xcode 4.2.1 for Snow Leopard - Stack Overflow. [2015-05-02]. (原始內容存檔於2021-05-14). 
  22. ^ Mac App Store - Xcode. [2015-05-02]. (原始內容存檔於2012-02-02). 
  23. ^ Mac App Store - Xcode. [2015-05-02]. (原始內容存檔於2012-02-18). 
  24. ^ Mac App Store - Xcode. Mac App Store. [2015-05-02]. (原始內容存檔於2012-07-01). 
  25. ^ iphone - Install Simulator SDK 4.3 to Xcode 4.4 on Mountain Lion - Stack Overflow. [2015-05-02]. (原始內容存檔於2021-05-14). 
  26. ^ Unauthorized - Apple Developer (PDF). [2015-05-02]. 
  27. ^ Mac App Store - Xcode. Mac App Store. [2015-05-02]. (原始內容存檔於2013-07-25). 
  28. ^ Unauthorized - Apple Developer (PDF). [2015-05-02]. 
  29. ^ Mac App Store - Xcode. Mac App Store. [2015-05-02]. (原始內容存檔於2013-10-10). 
  30. ^ Mac App Store - Xcode. Mac App Store. [2015-05-02]. (原始內容存檔於2014-05-30). 
  31. ^ Xcode 5 and iOS 7: Architecture and Valid architectures. [2015-12-24]. (原始內容存檔於2021-05-14). 
  32. ^ ios5 - Use iOS 5 Simulator in XCode 5? - Stack Overflow. [2015-05-02]. (原始內容存檔於2021-05-14). 
  33. ^ About 64-Bit Cocoa Touch Apps. [2015-12-24]. (原始內容存檔於2016-08-20). 
  34. ^ Install ios 5 simulator to xcode 5.1?. [2015-05-02]. 
  35. ^ iphone - ios 6.0 Simulator in xcode 5.1 - Stack Overflow. [2015-05-02]. 
  36. ^ ios - Xcode 6 Standard architectures exclude armv7s - Stack Overflow. [2015-05-02]. 
  37. ^ xcode - iOS 6.1 simulator on OSX 10.10 Yosemite - Stack Overflow. [2015-05-02]. 
  38. ^ 38.0 38.1 Developer Portal version
  39. ^ 39.0 39.1 MAS version
  40. ^ LSMinimumSystemVersion from Info.plist
  41. ^ Xcode 10.3 Release Notes. 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. ^ 48.0 48.1 48.2 48.3 48.4 48.5 plutil -p Xcode.app/Contents/Info.plist | grep LSMinimumSystemVersion
  49. ^ 49.0 49.1 49.2 49.3 49.4 49.5 cd Xcode.app/Contents/Developer; cd Platforms/MacOSX.platform/Developer/SDKs/; plutil -p */System/Library/CoreServices/SystemVersion.plist
  50. ^ 50.0 50.1 50.2 50.3 50.4 cd Xcode.app/Contents/Developer; plutil -p Platforms/iPhoneOS.platform/version.plist
  51. ^ 51.0 51.1 51.2 51.3 51.4 cd Xcode.app/Contents/Developer; plutil -p Platforms/WatchOS.platform/version.plist
  52. ^ 52.0 52.1 52.2 52.3 52.4 cd Xcode.app/Contents/Developer; plutil -p Platforms/AppleTVOS.platform/version.plist
  53. ^ SwiftUI: Getting Started. [2020-03-24]. (原始內容存檔於2022-04-11). 
  54. ^ To see the SwiftUI preview, you need macOS 10.15[53]
  55. ^ Xcode 11.1 Release Notes. Apple Developer Documentation. Apple Inc. [2019-12-10]. (原始內容存檔於2020-06-03). 
  56. ^ Xcode 11.2 Release Notes. Apple Developer Documentation. Apple Inc. [2019-11-04]. (原始內容存檔於2020-06-03). 
  57. ^ Xcode 11.2.1 Release Notes. Apple Developer Documentation. Apple Inc. [2019-12-10]. (原始內容存檔於2020-06-03). 
  58. ^ 58.00 58.01 58.02 58.03 58.04 58.05 58.06 58.07 58.08 58.09 58.10 58.11 58.12 58.13 58.14 58.15 58.16 58.17 58.18 58.19 58.20 58.21 58.22 58.23 58.24 58.25 58.26 58.27 58.28 58.29 58.30 58.31 58.32 58.33 58.34 58.35 58.36 58.37 58.38 58.39 58.40 58.41 58.42 58.43 58.44 58.45 58.46 58.47 58.48 58.49 58.50 58.51 58.52 58.53 58.54 Xcode Releases. xcodereleases.com. [2019-12-10]. (原始內容存檔於2022-05-04). 
  59. ^ Xcode 11.3 Release Notes. Apple Developer Documentation. Apple Inc. [2019-11-10]. (原始內容存檔於2020-06-03). 
  60. ^ Xcode 11.3.1 Release Notes. Apple Developer Documentation. Apple Inc. [2020-01-14]. (原始內容存檔於2020-06-03). 
  61. ^ Xcode 11.4 Release Notes. Apple Developer Documentation. Apple Inc. [24 March 2020]. (原始內容存檔於2020-05-02). 
  62. ^ Xcode 11.4.1 Release Notes. Apple Developer Documentation. Apple Inc. [16 April 2020]. (原始內容存檔於2020-05-14). 
  63. ^ Xcode 11.5 Release Notes. Apple Developer Documentation. Apple Inc. [20 May 2020]. 
  64. ^ Xcode 11.6 Release Notes. Apple Developer Documentation. Apple Inc. [15 July 2020]. (原始內容存檔於2022-11-28). 
  65. ^ Xcode 11.7 Release Notes. Apple Developer Documentation. Apple Inc. [26 August 2020]. (原始內容存檔於2023-01-14). 
  66. ^ Xcode 12 Release Notes. Apple Developer Documentation. Apple Inc. [25 August 2020]. (原始內容存檔於2022-12-21). 
  67. ^ Xcode 12.0.1 Release Notes. Apple Developer Documentation. Apple Inc. [25 September 2020]. (原始內容存檔於2022-12-21). 
  68. ^ Xcode 12.1 Release Notes. Apple Developer Documentation. Apple Inc. [October 20, 2020]. (原始內容存檔於2022-12-21). 
  69. ^ Xcode 12.1.1 RC Release Notes. Apple Developer Documentation. Apple Inc. [October 30, 2020]. (原始內容存檔於2022-09-26). 
  70. ^ Xcode 12.2 Release Notes. Apple Developer Documentation. Apple Inc. [November 12, 2020]. (原始內容存檔於2022-12-21). 
  71. ^ Xcode 12.3 Release Notes. Apple Developer Documentation. Apple Inc. [December 14, 2020]. (原始內容存檔於2022-12-21). 
  72. ^ Xcode 12.4 Release Notes. Apple Developer Documentation. Apple Inc. [January 27, 2021]. (原始內容存檔於2022-12-21). 
  73. ^ Xcode 12.5 Release Notes. Apple Developer Documentation. Apple Inc. [April 26, 2021]. (原始內容存檔於2022-12-21). 
  74. ^ Xcode 12.5.1 Release Notes. Apple Developer Documentation. Apple Inc. [June 21, 2021]. (原始內容存檔於2023-01-15). 
  75. ^ Xcode 13 Release Notes. Apple Developer Documentation. Apple Inc. [September 21, 2021]. (原始內容存檔於2022-12-30). 
  76. ^ Xcode 13.1 Release Notes. Apple Developer Documentation. Apple Inc. [October 26, 2021]. (原始內容存檔於2022-12-26). 
  77. ^ Xcode 13.2 Release Notes. Apple Developer Documentation. Apple Inc. [December 13, 2021]. (原始內容存檔於2022-12-21). 
  78. ^ Xcode 13.2.1 Release Notes. Apple Developer Documentation. Apple Inc. [December 13, 2021]. (原始內容存檔於2022-12-21). 
  79. ^ Xcode 13.3 Release Notes. Apple Inc. [March 15, 2022]. (原始內容存檔於2022-12-21). 
  80. ^ Xcode 13.3.1 Release Notes. Apple Inc. [April 12, 2022]. (原始內容存檔於2022-12-21). 
  81. ^ Xcode 13.4 Release Notes. Apple Inc. [May 16, 2022]. (原始內容存檔於2022-05-17). 
  82. ^ Xcode 13.4.1 Release Notes. Apple Inc. [June 3, 2022]. (原始內容存檔於2022-12-21). 
  83. ^ Xcode 14 Release Notes. Apple Inc. [September 13, 2022]. (原始內容存檔於2022-12-21). 
  84. ^ Xcode 14.0.1 Release Notes. Apple Inc. [September 27, 2022]. (原始內容存檔於2024-12-26). 
  85. ^ Xcode 14.1 Release Notes. Apple Inc. [November 3, 2022]. (原始內容存檔於2024-12-24). 
  86. ^ Xcode 14.2 Release Notes. Apple Inc. [December 14, 2022]. (原始內容存檔於2022-12-13). 
  87. ^ Xcode 14.3 Release Notes. Apple Inc. [March 31, 2023]. (原始內容存檔於2023-02-17). 
  88. ^ Xcode 14.3.1 Release Notes. Apple Inc. [June 2, 2023]. (原始內容存檔於2023-09-13). 
  89. ^ 89.00 89.01 89.02 89.03 89.04 89.05 89.06 89.07 89.08 89.09 89.10 89.11 參照錯誤:沒有為名為xcodereleases.com的參考文獻提供內容
  90. ^ 90.0 90.1 90.2 cd Xcode.app/Contents/Developer; plutil -p Platforms/XROS.platform/version.plist
  91. ^ Xcode 15 发行说明. Apple Inc. [September 19, 2023]. (原始內容存檔於December 25, 2024). 
  92. ^ Xcode 15.0.1 发行说明. Apple Inc. [October 19, 2023]. (原始內容存檔於December 25, 2024). 
  93. ^ Xcode 15.1 发行说明. Apple Inc. [December 12, 2023]. (原始內容存檔於December 26, 2024). 
  94. ^ Xcode 15.2 发行说明. Apple Inc. [January 9, 2024]. (原始內容存檔於December 20, 2024). 
  95. ^ Xcode 15.3 发行说明. Apple Inc. [February 27, 2024]. (原始內容存檔於December 20, 2024). 
  96. ^ Xcode 16.4 发行说明. Apple Inc. [May 14, 2024]. (原始內容存檔於December 24, 2024). 
  97. ^ Xcode 16 发行说明. Apple Inc. [September 17, 2024]. (原始內容存檔於December 25, 2024). 
  98. ^ Xcode 16.1 发行说明. Apple Inc. [October 31, 2024]. (原始內容存檔於November 27, 2024). 
  99. ^ Xcode 16.2 发行说明. Apple Inc. [December 12, 2024]. (原始內容存檔於December 13, 2024). 
  100. ^ Xcode 16.3 发行说明. Apple Inc. [April 1, 2025]. (原始內容存檔於April 1, 2025). 
  101. ^ Xcode 16.4 发行说明. Apple Inc. [May 29, 2025]. (原始內容存檔於May 29, 2025). 
  102. ^ Xcode 26 发布说明. Apple Inc. [September 16, 2025]. (原始內容存檔於September 15, 2025). 
  103. ^ Xcode 26.0.1 发布说明. Apple Inc. [September 23, 2025]. (原始內容存檔於September 22, 2025). 
  104. ^ Xcode 26.1 发布说明. Apple Inc. [November 4, 2025]. (原始內容存檔於October 31, 2025). 
  105. ^ Xcode 26.1.1 发布说明. Apple Inc. [November 12, 2025]. (原始內容存檔於November 11, 2025). 
  106. ^ Xcode 26.2 发布说明. Apple Inc. [December 14, 2025]. (原始內容存檔於December 12, 2025). 
  107. ^ Xcode 26.3 发布说明. Apple Inc. [February 28, 2026]. (原始內容存檔於March 2, 2026). 
  108. ^ Xcode 26.4 发布说明. Apple Inc. [March 24, 2026]. (原始內容存檔於March 25, 2026). 
  109. ^ Xcode 26.4.1 发布说明. Apple Inc. [April 18, 2026]. (原始內容存檔於April 17, 2026). 
  110. ^ Xcode 26.5 发布说明. Apple Inc. [May 12, 2026]. (原始內容存檔於May 11, 2026). 
  111. ^ Xcode 26.6 发布说明. Apple Inc. [June 26, 2026]. (原始內容存檔於June 26, 2026). 
  112. ^ Xcode 27 发布说明. Apple Inc. [September 15, 2026]. 
  113. ^ Xcode 27.1 发布说明. Apple Inc. [October 16, 2026]. 
  114. ^ Xcode 27.2 发布说明. Apple Inc. [October 30, 2026]. 
  115. ^ iOS開發工具Xcode遭惡意代碼插入 網易雲音樂等APP被感染. 網易數碼. 2015-09-18 [2015-09-19]. (原始內容存檔於2015-09-25). 
  116. ^ 116.0 116.1 關於Xcode自帶病毒事件你必須要知道的7件事. 網易數碼. 2015-09-18 [2015-09-19]. (原始內容存檔於2020-06-03). 
  117. ^ 117.0 117.1 驅動之家. 迅雷:離線服務器並未受問題Xcode版本影響-搜狐科技. 搜狐. 2015-09-19 [2015-09-19]. (原始內容存檔於2021-05-14). 
  118. ^ 冰冰. XcodeGhost作者現身澄清:只是一次錯誤的實驗. 驅動之家. 2015-09-19 [2015-09-19]. (原始內容存檔於2021-05-14). 
  119. ^ XcodeGhost作者凌晨現身微博並公開源碼 稱只是實驗項目. 網易數碼. 2015-09-19 [2015-09-19]. (原始內容存檔於2020-12-03). 
  120. ^ 黃彥棻. XcodeGhost風暴事件大剖析. 電週文化事業. 2015-10-13 [2017-12-13]. (原始內容存檔於2021-05-14). 

外部連結

[編輯]