Support SwiftPM in @react-native-harness/ui
维护者通常 1 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- react-native, swift, typescript
- 领域
- build-system, mobile
调研方向
Start by inspecting the @react-native-harness/ui package’s podspec, package contents, native sources, and SwiftPM configuration conventions in React Native 0.88. Add a Package.swift, its autolinking name in swiftpmConfig, include the manifest in the npm package, and ensure native sources compile without CocoaPods prefix-header imports. Verify with npx react-native spm in a React Native 0.88 app; the app should build while CocoaPods support remains available.
由索引模型根据 Issue 内容生成。
描述
@react-native-harness/ui ships a CocoaPods podspec but no Package.swift. React Native's SwiftPM autolinker therefore cannot build HarnessUI in an app that uses SwiftPM for its native dependencies.
This affects the published 1.5.0 package and the current 1.6.0 source on main. We hit it while moving Nitro's example app to React Native 0.88 and SwiftPM: https://github.com/margelo/nitro/pull/1781.
To reproduce, install @react-native-harness/ui in a React Native 0.88 app and run npx react-native spm. The dependency has no package manifest, so the autolinker requires a locally scaffolded manifest before the app can build.
The UI package should ship a SwiftPM manifest and its autolinking name in swiftpmConfig, including the manifest in its npm package. Its native sources also need to compile without CocoaPods' implicit prefix-header imports. The existing podspec can remain for CocoaPods apps.
I will send a PR for the native UI package. Harness's runner already accepts a built app; this does not require changing how tests run or adding SwiftPM support to optional native coverage.
- 主要语言
- TypeScript
- 星标
- 333
- 派生
- 20
- 平均合并
- 14 小时
- 30 天内合并 PR
- 30
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
callstackincubator/react-native-harness 的其他 Issue
-
--metroPort is documented, but the CLI rejects it as an unrecognized option可能已有人在做 @YevheniiKotyrlo 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
callstackincubator/react-native-harness#199 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
callstackincubator/react-native-harness#128 ·
维护者通常 1 天内回复
-
iOS screenshot implementation disagrees with the generated nullable bounds contract可能已有人在做 @mrousavy 今天认领。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
callstackincubator/react-native-harness#253 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 15/100
callstackincubator/react-native-harness#247 · 1 个 reaction ·
维护者通常 1 天内回复
-
iOS simulator runs fail on Xcode 27 when the app is not installed可能已有人在做 @DaveyEke 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
callstackincubator/react-native-harness#223 ·
维护者通常 1 天内回复
查看 callstackincubator/react-native-harness 的全部 Issue
相似的 Issue
-
frontend
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
ranxianglei/billion-context#4172 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
awslabs/threat-composer#362 ·
维护者通常 1 天内回复
-
Area/Cloud Needs Triage Type/Bug
难度 1/5 1-3 小时 新手友好度 86/100
wso2/product-integrator#2847 ·
维护者通常 1 天内回复