Add module version metadata to binary distributions
維護者通常 1 天內回覆
已經有一個關聯 PR 被合併了。
- #1231 來自 @Kyle-Ye —— 已合併
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- swift
- 領域
- build-system, release
研究方向
Start with the build settings that publish OpenSwiftUI and OpenSwiftUICore, tracing how SWIFT_USER_MODULE_VERSION is set and how -user-module-version reaches the generated .swiftinterface files. Then inspect the distribution validation path for the iOS, macOS and visionOS slices, and compare it with the standalone DemoKit experiment. Done means version checks pass at and below 0.25.0, fail above it, and the docs explain _underlyingVersion and unversioned-module behavior.
由索引模型根據 Issue 內容生成。
描述
Summary
Add module version metadata to published OpenSwiftUI binaries so consumers can check a minimum release at compile time:
#if canImport(OpenSwiftUI, _version: 0.25.0)
import OpenSwiftUI
#endif
Scope
- Set
SWIFT_USER_MODULE_VERSIONfrom the release version for the OpenSwiftUI and OpenSwiftUICore targets. - Preserve
-user-module-versionin the public.swiftinterfacefiles for every published platform slice. - Keep dependency framework versions independent of the OpenSwiftUI release version.
- Document the use of
_versionand the behavior of older binaries without module version metadata.
Acceptance criteria
- Version checks succeed for the published version and lower versions, and fail for higher versions.
- The checks work when consumers load only the public textual interfaces on iOS, macOS, and visionOS.
- Distribution validation checks both the expected version and an upper boundary.
- Documentation explains that
_underlyingVersionchecks the underlying Clang module, and that an unversioned Swift module warns and ignores the requested version rather than selecting the false branch.
A standalone DemoKit experiment has verified the build setting, version boundaries, and public interface behavior across the five Apple SDK slices.
- 主要語言
- Swift
- 星號
- 2.5k
- 分支
- 84
- 平均合併
- 4 小時 55 分鐘
- 30 天內合併 PR
- 73
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
OpenSwiftUIProject/OpenSwiftUI 的其他 Issue
-
Implement Picker未關閉area: data-flow area: view type: feature
難度 4/5 3-5 天 新手友好度 30/100
OpenSwiftUIProject/OpenSwiftUI#1225 ·
維護者通常 1 天內回覆
-
area: graphics area: rendering type: feature
難度 5/5 一週以上 新手友好度 18/100
OpenSwiftUIProject/OpenSwiftUI#1223 · 3 個 reaction ·
維護者通常 1 天內回覆
-
area: graphics area: rendering type: feature
難度 4/5 3-5 天 新手友好度 30/100
OpenSwiftUIProject/OpenSwiftUI#1222 ·
維護者通常 1 天內回覆
-
area: rendering type: feature
難度 5/5 一週以上 新手友好度 35/100
OpenSwiftUIProject/OpenSwiftUI#1214 · 1 個 reaction ·
維護者通常 1 天內回覆
-
area: animation area: rendering type: feature
難度 5/5 一週以上 新手友好度 35/100
OpenSwiftUIProject/OpenSwiftUI#1206 ·
維護者通常 1 天內回覆
查看 OpenSwiftUIProject/OpenSwiftUI 的全部 Issue
相似的 Issue
-
bug mac アプリ: コード アプリ: チャット 優先: 中 要トリアージ
難度 2/5 1-3 小時 新手友好度 74/100
yksr-melt/Meltype#1346 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
vorssaint/vorssaint-utils#3667 ·
維護者通常 1 天內回覆
-
area: browser
難度 2/5 1-3 小時 新手友好度 62/100
manaflow-ai/cmux#27619 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 1/5 1 小時以內 新手友好度 88/100
dorlugasigal/annotator#90 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
dkhamsing/open-source-ios-apps#2484 · 1 個 reaction ·
維護者通常 1 天內回覆