Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Support SwiftPM in @react-native-harness/ui

Đã đóng
#212 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@mrousavy đang làm issue này rồi.

Từ ngày 19/10/2026.

  • #213 của @mrousavy — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react-native, swift, typescript
Lĩnh vực
build-system, mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

@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.

Ngôn ngữ chính
TypeScript
Star
333
Fork
20
Merge trung bình
1 ngày 37 phút
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstackincubator/react-native-harness

Tất cả issue của callstackincubator/react-native-harness

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.