Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support SwiftPM in @react-native-harness/ui

Chiusa
#212 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@mrousavy ci sta già lavorando.

Dal 19/10/2026.

  • #213 di @mrousavy — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react-native, swift, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
333
Fork
20
Merge medio
1g 37m
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di callstackincubator/react-native-harness

Tutte le issue di callstackincubator/react-native-harness

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.