Skip to content

create-react-native-library example for native module with c++ possibly broken on iOS #493

@therealpurplemana

Description

@therealpurplemana

Hi, I'm trying to scaffold a react native native module using jsi with cpp. I'm unable to get the sample working on iOS and curious if anyone else has seen an issue.

To reproduce:

  1. npx create-react-native-library react-native-nativetest then cd into folder
  2. yarn
  3. yarn android --> Loads and works correctly. Result: 21 displayed on screen
  4. cd /example/ios --> pod install --> Pods all install properly including the react-native-nativetest 0.1
  5. Open XBCode Project to set signing certificate
  6. cd to / and run yarn ios --> Builds and installs on the phone. Dev server still running from Android, so I reload the app and it connects, bundles, and splash screen displays. Then goes black screen with a Console Warning: RCTBridge required dispatch_sync to load RCTAccessibilityManager with no other errors.

Trying to build directly in Xcode project shows this error: image

Has anyone else encountered this recently and any tips to get it running on iOS?

Testing on iOS 17.4 with iPhone 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions