Skip to content

Fix iOS build with Xcode 27 - #31

Open
rmarquois wants to merge 1 commit into
alpha0010:masterfrom
rmarquois:master
Open

rmarquois wants to merge 1 commit into
alpha0010:masterfrom
rmarquois:master

Conversation

@rmarquois

@rmarquois rmarquois commented Nov 4, 2026 •

Copy link
Copy Markdown

Description

This PR fixes an iOS compilation issue when using react-native-pdf-light with Xcode 27, Expo SDK 58, and React Native 0.88.

Issue

The iOS build fails with the following errors:

Unknown type name 'RCTPromiseResolveBlock'
Unknown type name 'RCTPromiseRejectBlock'

This happens because the generated Swift header references React Native Promise callback types before they are declared.

Fix

Import RCTBridgeModule.h before the generated Swift header in:

  • ios/PdfView.mm
  • ios/PdfUtilModule.mm

Environment tested

  • Xcode 27
  • Expo SDK 58
  • React Native 0.88
  • iOS Simulator
  • New Architecture enabled

No changes to the Swift implementation or runtime behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant