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

iOS dynamic frameworks fail to link UniformTypeIdentifiers

Aperta Adatta ai principianti
#826 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
73/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
ios, react-native, ruby

Direzione di ricerca

Inizia leggendo ReactNativeEnrichedHtml.podspec e l’implementazione degli appunti di iOS che importa UniformTypeIdentifiers. Verifica che le dichiarazioni dei framework di sistema nel podspec coprano i simboli UTType indicati nell’errore del linker, quindi controlla il requisito della guida alla contribuzione di discutere prima l’implementazione. Il risultato è raggiunto quando un consumer di un framework CocoaPods dinamico esegue correttamente il linking senza una patch dell’applicazione.

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

Descrizione

Description

The CocoaPods specification does not link UniformTypeIdentifiers, although the iOS clipboard implementation imports it and uses UTType constants. An iOS consumer using dynamic CocoaPods frameworks fails while linking ReactNativeEnrichedHtml.

Environment
  • react-native-enriched-html: 1.1.1
  • Expo SDK: 58.0.16
  • React Native: 0.88.0
  • Xcode: 27
  • CocoaPods: 1.16.2
  • arm64 iOS simulator
  • expo-build-properties: ios.useFrameworks: 'dynamic', ios.usePrecompiledModules: false
Observed result

The linker reports undefined symbols including _UTTypeGIF, _UTTypeHEIC, _UTTypeHTML, and _UTTypeJPEG, referenced by EnrichedInputTextView and EnrichedTextTextView.

Investigation and proposed fix

Adding this system-framework declaration to ReactNativeEnrichedHtml.podspec fixed the linker error:

s.frameworks = "UniformTypeIdentifiers"

After reinstalling Pods, the same consumer built with zero errors and installed on the simulator.

This was tested in an existing consumer, rather than the upstream example. Version 1.1.1 also required React header import corrections before reaching the linker; current main already has React header mapping changes. Main at 0d015a7b1d011e32705d71fd3cd02c68bf8e2c52 still lacks the framework declaration.

Expected result

The library should declare the Apple system frameworks its native implementation uses, so dynamic-framework consumers can link without application patches.

The contribution guide asks for an issue discussion before implementation pull requests. I have the one-line podspec change prepared and can submit it if this is the preferred fix.

Lingua principale
C
Stelle
1.4k
Fork
69
Merge medio
8g 13h
PR unite (30g)
8

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 software-mansion/react-native-enriched-html

Tutte le issue di software-mansion/react-native-enriched-html

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.