iOS 27.2 beta:開發者該知道的新內容,逐一 beta 追蹤
Apple 在 2026年9月16日(星期三)開啟了 27.2 週期,距 iOS 27.0 推出僅兩天:iOS 與 iPadOS 27.2 beta(24B5084k)、同步的 macOS、tvOS、visionOS 與 watchOS beta,以及 Xcode 27.2 beta(27B5019j);第二批 beta 在 9 月 21 日(星期一)跟進(iOS 27.2 beta 2,24B5089g)。 iOS 的發行說明很短,只有一項功能,也就是為歐盟使用者擴充的 App Tracking Transparency 提示;Xcode 的發行說明則帶來多數開發者最先會感受到的變更,一種 JSON 專案格式,另外還有一個部署目標錯誤,以及一個附有因應方法的程式碼自動完成當機問題;而 Apple 明確表示,iPhone Duo SDK 不在 27.2 裡。本文逐一 beta 閱讀這些發行說明,並會隨每個新 beta 持續更新。1235
重點摘要
- 組建。 iOS 與 iPadOS 27.2 beta 24B5084k 於 9 月 16 日推出,beta 2 24B5089g 於 9 月 21 日推出;同一天還有 macOS 27.2 beta 2 26B5091g、tvOS 24K5093g、visionOS 24N5093f、watchOS 24S5091f;Xcode 27.2 beta 27B5019j 於 9 月 16 日推出,截至 9 月 26 日還沒有第二個 Xcode beta。1
- iOS 只有一項功能。 「
AppTrackingTransparency(ATT) now supports an alternative expanded prompt and re-prompting on a yearly basis for EU users. The alternative prompt is required for users in France, Germany, Italy, Poland, and Romania.」(ATT 現在支援另一種擴充版提示,並可對歐盟使用者每年重新詢問;法國、德國、義大利、波蘭與羅馬尼亞的使用者必須使用這種替代提示。)iOS 發行說明其餘的部分是三項 StoreKit Testing 修正、一則 StoreKit Testing 已知問題、一則 Health 已知問題,以及一則 Shortcuts 已知問題。沒有棄用項目,也沒有連結 27.2 後才生效的行為變更。2 - 真正重要的 Xcode 變更。 「Xcode now supports a JSON-based project format (.xcproj) that’s more readable, merge-friendly, and easier for coding agents to edit. Enable it in the file inspector. Projects using .xcproj also open in earlier versions of Xcode 27.」(Xcode 現在支援以 JSON 為基礎的專案格式 .xcproj,更易讀、更容易合併,也更方便程式設計代理編輯;在檔案檢閱器中啟用;使用 .xcproj 的專案也能在較早的 Xcode 27 版本中開啟。)3
- 兩個 Xcode 陷阱。 27.2 中的 macOS、watchOS、tvOS 與 visionOS SDK「incorrectly report 27.1 as a valid deployment target」(錯誤地把 27.1 列為有效的部署目標),而 Xcode「may crash when using code completion on macOS 27.2 beta」(在 macOS 27.2 beta 上使用程式碼自動完成時可能當機),因應方法是一行
defaults write。3 - 不在 27.2 裡的東西。 iPhone Duo SDK 與模擬器:「Download Xcode 27.1 beta to get the iOS SDK and simulator support for iPhone Duo」(請下載 Xcode 27.1 beta 以取得 iPhone Duo 的 iOS SDK 與模擬器支援),而 Apple 的新聞稿表示,這支手機將於 10 月 23 日搭載 iOS 27.1 上市。35
哪個組建是哪個?
| 項目 | 組建 | 動態日期 |
|---|---|---|
| iOS 27.2 beta / iPadOS 27.2 beta | 24B5084k | 2026年9月16日(星期三) |
| macOS 27.2 beta | 26B5086k | 2026年9月16日(星期三) |
| tvOS 27.2 beta | 24K5088l | 2026年9月16日(星期三) |
| visionOS 27.2 beta | 24N5088l | 2026年9月16日(星期三) |
| watchOS 27.2 beta | 24S5086l | 2026年9月16日(星期三) |
| Xcode 27.2 beta | 27B5019j | 2026年9月16日(星期三) |
| iOS 27.2 beta 2 / iPadOS 27.2 beta 2 | 24B5089g | 2026年9月21日(星期一) |
| macOS 27.2 beta 2 | 26B5091g | 2026年9月21日(星期一) |
| tvOS 27.2 beta 2 | 24K5093g | 2026年9月21日(星期一) |
| visionOS 27.2 beta 2 | 24N5093f | 2026年9月21日(星期一) |
| watchOS 27.2 beta 2 | 24S5091f | 2026年9月21日(星期一) |
| Xcode 27.1 beta(Duo SDK) | 27A9269 | 2026年9月18日(星期五) |
順序本身就說明了一切。Apple 在任何 27.1 beta 出現之前就先推出了 27.2 beta,兩天後才發布 Xcode 27.1 beta,作為承載 iPhone Duo 的版本;時間軸請見 Xcode 27 那篇文章,實際操作請見 Duo 模擬器那篇文章。截至 9 月 26 日,Apple 的發行說明索引裡仍然沒有 iOS 27.1 的頁面,只有「iOS & iPadOS 27 Release Notes」與「iOS & iPadOS 27.2 Beta 2 Release Notes」。12
iOS 27.2 beta 發行說明寫了什麼?
頁面開頭是界定範圍的句子:「The iOS & iPadOS 27.2 SDK provides support to develop apps for iPhone and iPad running iOS & iPadOS 27.2 beta 2. The SDK comes bundled with Xcode 27.2」(iOS 與 iPadOS 27.2 SDK 支援開發在 iOS 與 iPadOS 27.2 beta 2 上執行的 iPhone 與 iPad App,並隨 Xcode 27.2 一同提供),接著分成四個部分。2
App Tracking Transparency。 唯一的一項 New Feature:「AppTrackingTransparency (ATT) now supports an alternative expanded prompt and re-prompting on a yearly basis for EU users. The alternative prompt is required for users in France, Germany, Italy, Poland, and Romania.」這則說明沒有提到任何 API。我的 歐盟追蹤提示文章 讀了標頭檔與參考頁面,補上說明沒寫的部分:新的 requestTrackingAuthorization 多載,讓歐盟其餘國家也能顯示擴充版表單,以及那顆「Additional Information」按鈕,按下後提示會關閉而不記錄任何決定。那篇文章也在 beta 模擬器上跑了測試程式:在第一個 beta 的執行環境上,每一次有跳出提示的執行,顯示的都是標準警示框,從未出現表單;表單本身得在實機上測,而且那台裝置必須位於歐盟,並以歐盟地區的 Apple 帳號登入。
StoreKit Testing in Xcode。 兩個條目從 27.0 發行說明的 Known Issues 移到了 Resolved:「Changing the storefront or locale using SKTestSession doesn’t propagate through Storefront.updates」(透過 SKTestSession 變更店面或語言地區,不會經由 Storefront.updates 傳遞),以及「Failed purchases using SKTestSession might display error dialogs even when dialogsDisabled is set to true.」(即使 dialogsDisabled 設為 true,使用 SKTestSession 的失敗購買仍可能顯示錯誤對話框。)第三個 Resolved 條目「Intro offer eligibility does not reset immediately after calling SKTestSession.clearTransactions()」(呼叫 SKTestSession.clearTransactions() 後,首次優惠資格不會立即重設),重複了 27.0 發行說明已經列過的修正。另有一則新的 Known Issue:「Making a purchase in-app for a subscription that is a member of a subscription bundle incorrectly allows the user to unbundle instead of throwing an error.」(在 App 內購買屬於訂閱組合的訂閱時,系統錯誤地讓使用者拆分組合,而不是拋出錯誤。)2
Health 與 Shortcuts。 兩則 Known Issues:「Personalized summaries may not generate as expected in the Insights tab」(「洞察」分頁中的個人化摘要可能無法如預期產生),以及「Describe a Shortcut might fail with the error “Something went wrong. Try again later.”」(「描述捷徑」可能失敗,並顯示錯誤訊息。)2
整個頁面就是這些。根據 iOS 27 發行說明那篇文章 9 月 21 日的更新,beta 1 到 beta 2 之間,分區與 radar 編號都沒有改變;改變的是標題與 Overview 中的組建名稱,從「Beta」變成「Beta 2」。至於 Xcode 27.2 的頁面,Overview 中那句承諾 Duo SDK 會「later this month in an upcoming release of Xcode 27.1」(本月稍後在即將推出的 Xcode 27.1 中)提供的句子,在 9 月 17 日到 19 日之間被那則下載提示取代了,同一篇文章在 9 月 19 日的更新與註腳 8 中有記錄;本文引用的提示取自目前的頁面。3 那篇文章列出的所有 27.0 棄用項目與連結 27 後才生效的行為變更,在 27.2 beta 2 中都維持不變。2
Xcode 27.2 beta 改了什麼?
Overview 寫道:「Xcode 27.2 beta includes Swift 6.4 and SDKs for iOS 27.2, iPadOS 27.2, tvOS 27.2, watchOS 27.2, macOS 27.2, and visionOS 27.2. Xcode 27.2 beta supports on-device debugging in iOS 17 and later, tvOS 17 and later, watchOS 10 and later, and visionOS. Xcode 27.2 beta requires a Mac running macOS Tahoe 26.6 or later.」(Xcode 27.2 beta 包含 Swift 6.4 與各平台 27.2 的 SDK,支援在 iOS 17、tvOS 17、watchOS 10 及以上版本與 visionOS 上進行實機除錯,並需要執行 macOS Tahoe 26.6 或更新版本的 Mac。)下方則是那則提示:「Download Xcode 27.1 beta to get the iOS SDK and simulator support for iPhone Duo.」3
JSON 專案格式。 在 Project Format 的 New Features 之下:「Xcode now supports a JSON-based project format (.xcproj) that’s more readable, merge-friendly, and easier for coding agents to edit. Enable it in the file inspector. Projects using .xcproj also open in earlier versions of Xcode 27. Learn more in Updating your Xcode project configuration file format.」三句話說了三件事:這個格式採逐專案選用,在 27 系列之內向下相容,而且 Apple 把程式設計代理列為理由之一。只要看過代理花好幾輪用正規表示式去改 project.pbxproj,就明白那句關於程式設計代理的話為何存在;至於易於合併,則是團隊盼了十年的部分。我還沒有轉換過任何專案,所以這個檔案在磁碟上長什麼樣子,留待之後的記錄再說。3
部署目標陷阱。 在 SDK 的 Known Issues 之下:「macOS, watchOS, tvOS, and visionOS SDKs in Xcode 27.2 incorrectly report 27.1 as a valid deployment target. Builds and other functionality may have unexpected behavior if this deployment target is used. Mac Catalyst builds with a 27.1 or 27.2 deployment target may be unable to use newly introduced API.」(Xcode 27.2 中的這四個 SDK 錯誤地把 27.1 列為有效的部署目標,使用它可能導致建置與其他功能出現非預期行為;部署目標為 27.1 或 27.2 的 Mac Catalyst 建置可能無法使用新推出的 API。)Apple 並沒有為這四個系統發布 27.1,而 Xcode 27.1 beta 自己的 Overview 也把它們的 SDK 列為 27,所以設為 27.1 的目標,要求的是一個 Apple 從未推出的作業系統版本。請使用 27.0;只有刻意要求 beta 的目標才設為 27.2。同時,Apple 對 Mac Catalyst 的警告同時適用於 27.1 與 27.2,請留意。36
程式碼自動完成當機。 在 General 的 Known Issues 之下:「Xcode may crash when using code completion on macOS 27.2 beta」,因應方法是 defaults write com.apple.dt.Xcode CodeCompletionAssetsToLoad /dev/null,其作用是「turn[s] off enhanced code completion ranking」(關閉強化的程式碼自動完成排序)。macOS 27.2 beta 2 的發行說明把這個當機列為已在作業系統端修正,所以已經升到 beta 2 的 Mac 應該不需要這項設定。34
Device Hub 與 Simulator。 兩則 Device Hub 的 Known Issues:對於「for OS versions before iOS 18.0, tvOS 18.0, watchOS 11.0, and visionOS 2.0」(iOS 18.0、tvOS 18.0、watchOS 11.0 與 visionOS 2.0 之前的作業系統版本)的模擬器,鍵盤與滑鼠輸入不會被接受;而在「Simulate Hardware Keyboard」開啟時中斷連線的實體裝置,「may remain in “hardware keyboard” mode for up to 2 minutes」(可能在最長 2 分鐘內停留在硬體鍵盤模式)。另有一則附帶舊 radar 的 Simulator Known Issue:「Some simulator runtimes are not completely deleted when removed, re-appearing after a reboot.」(部分模擬器執行環境移除時沒有完全刪除,重新開機後又會出現。)3
Previews。 四項修正,其中一項是給代理用的:「The RenderPreview MCP tool now returns the list of available render destinations, and lets the caller specify which destination to use for rendering.」(RenderPreview MCP 工具現在會回傳可用的算繪目的地清單,並讓呼叫端指定要用哪一個。)其餘三項分別是縮圖格狀檢視的選取錯誤、針對不支援平台的更清楚錯誤訊息,以及「when previews fail because another user account on this Mac owns the Previews JIT directory」(因這台 Mac 上另一個使用者帳號擁有 Previews JIT 目錄而導致預覽失敗時)更清楚的錯誤訊息。3
macOS 27.2 beta 2 發行說明寫了什麼?
五個部分。程式碼自動完成當機列為已修正;一項 AppKit 棄用,「The EnablePasteboardPrivacyDeveloperPreview user default has been removed」(EnablePasteboardPrivacyDeveloperPreview 這個使用者預設值已被移除);一則全新安裝時的 Notifications 已知問題,Mac「might not prompt you to allow notifications for some apps, such as Calendar, Maps, Find My, Home, and Weather」(對於行事曆、地圖、尋找、家庭與天氣等部分 App,可能不會詢問您是否允許通知),因應方法是到系統設定中處理;與 iOS 相同的 Shortcuts 已知問題;以及與 iOS 相同的 StoreKit Testing 條目,三項已修正、一項新增。這些 beta 所依據的 27.0 版本,請見 macOS 27 發行說明那篇文章。4
什麼不在 27.2 裡?
iPhone Duo。Apple 9 月 16 日的新聞稿寫道:「When iPhone Duo becomes available on October 23, it will run iOS 27.1. This version builds on the foundation of iOS 27 and introduces features that were purpose-built for the new foldable design. Xcode 27.1 will add development support for iPhone Duo. This includes updated SDKs and a simulator that supports the all-new poses and orientations of iPhone Duo.」(iPhone Duo 於 10 月 23 日上市時將執行 iOS 27.1,此版本以 iOS 27 為基礎,引入專為新摺疊設計打造的功能;Xcode 27.1 將加入 iPhone Duo 的開發支援,包括更新的 SDK,以及支援 iPhone Duo 全新姿態與方向的模擬器。)Xcode 27.2 beta 的發行說明也重複了這個指引。所以安裝 27.2 beta,測得到的是歐盟提示與 StoreKit 修正;測不到摺疊。一個同時需要 Duo API 與 27.2 SDK 的專案,只能等待一個 Apple 尚未發布的組建。35
我這週會怎麼做
- 如果您在歐盟銷售 App,而且只要在法國、德國、義大利、波蘭或羅馬尼亞銷售就必須這麼做:請在一台位於歐盟、並以歐盟地區 Apple 帳號登入的裝置上檢查追蹤流程。在我的測試中,模擬器只顯示標準警示框;歐盟追蹤提示那篇文章 列出了上線步驟,以及那個既不代表同意、也不代表拒絕的回傳值。2
- 在分支上試用
.xcproj,不要直接在 main 上試:在檔案檢閱器中啟用、提交,然後在團隊全面採用之前,先看看新檔案裡的合併衝突長什麼樣子。3 - 在 Xcode 27.2 中逐一檢查每個 target 的部署目標選單,看看 macOS、watchOS、tvOS 與 visionOS 上是否出現了不該出現的 27.1。3
- 如果在 27.0 下,與店面變更或
dialogsDisabled相關的 StoreKit 測試時好時壞,不妨在 27.2 上重跑;這兩個原因都已列為修正。2 - 如果您要為 Duo 開發,請讓 Xcode 27.1 beta 與 27.2 beta 並存;目前兩者都無法取代對方。35
常見問題
iOS 27.2 beta 2 有什麼新內容?
與 beta 1 是同一個頁面,只是標題與 Overview 中的組建名稱換了:擴充版的歐盟 App Tracking Transparency 提示、三項 StoreKit Testing 修正,以及三則已知問題。沒有棄用項目,也沒有以 27.2 SDK 為條件的行為變更。2
iOS 27.2 什麼時候正式推出?
Apple 尚未公布日期。beta 從 9 月 16 日開始,9 月 21 日來到 beta 2;等發佈動態出現正式版,本文也會跟著記錄。1
iOS 27.2 beta 支援 iPhone Duo 嗎?
不支援。根據 Apple 的說法,Duo SDK 與模擬器隨 Xcode 27.1 beta 提供,而這支手機在 10 月 23 日上市時執行的是 iOS 27.1。35
.xcproj 格式是什麼?
這是 Xcode 27.2 beta 推出的一種以 JSON 為基礎的 Xcode 專案格式,透過檔案檢閱器逐專案選用。Apple 形容它「more readable, merge-friendly, and easier for coding agents to edit」(更易讀、更容易合併,也更方便程式設計代理編輯),而較早的 Xcode 27 版本仍然可以開啟它。3
我該在日常使用的裝置上安裝 27.2 beta 嗎?
發行說明列出了上述的已知問題,沒有提到資料遺失,但 beta 終究是 beta。歐盟表單需要一台位於歐盟、並以歐盟地區 Apple 帳號登入的裝置;在我的測試中,模擬器只顯示標準警示框。StoreKit Testing 的修正列在 27.2 的作業系統發行說明中,所以用 27.2 的模擬器執行環境重跑那些測試應該就夠了,不必安裝到裝置上。2
資料來源
-
Apple,Releases,RSS 動態於 2026年9月26日擷取:「iOS 27.2 beta 2 (24B5089g)」、「iPadOS 27.2 beta 2 (24B5089g)」、「macOS 27.2 beta 2 (26B5091g)」、「tvOS 27.2 beta 2 (24K5093g)」、「visionOS 27.2 beta 2 (24N5093f)」與「watchOS 27.2 beta 2 (24S5091f)」日期為 2026年9月21日(星期一);「Xcode 27.2 beta (27B5019j)」日期為 2026年9月16日(星期三);「Xcode 27.1 beta (27A9269)」日期為 2026年9月18日(星期五)。日期為 9 月 16 日(星期三)的第一批 beta 項目,「iOS 27.2 beta (24B5084k)」、「iPadOS 27.2 beta (24B5084k)」、「macOS 27.2 beta (26B5086k)」、「tvOS 27.2 beta (24K5088l)」、「visionOS 27.2 beta (24N5088l)」、「watchOS 27.2 beta (24S5086l)」與「Xcode 27.2 beta (27B5019j)」,出現在 2026年9月17日擷取的動態中,並連同這些組建編號記錄於 Xcode 27 那篇文章當天的更新及其註腳 9;9 月 26 日擷取的動態以 beta 2 項目取代了第一批 beta 的作業系統項目。註腳 5 的新聞稿佐證了這一波六個系統的 beta。 ↩↩↩↩
-
Apple,iOS & iPadOS 27.2 Beta 2 Release Notes,2026年9月26日擷取:Overview;App Tracking Transparency 的 New Features(179504171);Health 的 Known Issues(186964423);Shortcuts 的 Known Issues(187499433);StoreKit Testing in Xcode 的 Resolved Issues(183933307、184155259、184255116)與 Known Issues(186018916),皆為引用。同日擷取的發行說明索引列出「iOS & iPadOS 27 Release Notes」與「iOS & iPadOS 27.2 Beta 2 Release Notes」,沒有 27.1 的項目。 ↩↩↩↩↩↩↩↩↩↩↩
-
Apple,Xcode 27.2 Beta Release Notes,2026年9月26日擷取:Overview 及其提示;General 的 Known Issues(186939138);Device Hub 的 Known Issues(181945323、182553164);Previews 的 Resolved Issues(183475595、185436582、186442676);Previews & Playgrounds 的 Resolved Issues(184564292);Project Format 的 New Features(184661114);SDK 的 Known Issues(187160501);Simulator 的 Known Issues(141290052),皆為引用。 ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩
-
Apple,macOS 27.2 Golden Gate Beta 2 Release Notes,2026年9月26日擷取:General(186939138)、AppKit(186955507)、Notifications(187312007)、Shortcuts(187499433)、StoreKit Testing in Xcode(183933307、184155259、184255116、186018916),皆為引用。 ↩↩
-
Apple,「Get ready with the latest beta releases」,開發者新聞,2026年9月16日,於 2026年9月26日從開發者新聞 RSS 動態讀取:「The beta versions of iOS 27.2, iPadOS 27.2, macOS 27.2, tvOS 27.2, visionOS 27.2, and watchOS 27.2 are now available.」以及「Note about iOS 27.1 and iPhone Duo」,皆為引用。 ↩↩↩↩↩
-
Apple,Xcode 27.1 Beta Release Notes,2026年9月26日擷取,Overview:「Xcode 27.1 beta includes Swift 6.4 and SDKs for iOS 27.1, iPadOS 27, tvOS 27, watchOS 27, macOS 27, and visionOS 27.」 ↩