Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build Realm with React Native 0.61.2 #2562

Closed
kmvkrish opened this issue Oct 11, 2019 · 4 comments
Closed

Unable to build Realm with React Native 0.61.2 #2562

kmvkrish opened this issue Oct 11, 2019 · 4 comments

Comments

@kmvkrish
Copy link

Does RealmJS currently support React Native 0.60 and above?

Unable to build ios project with realm 3.2.0 integrated on React-Native v0.61.2.

Error:
node_modules/realm/react-native/ios/RealmReact/RealmReact.mm:27:9: 'React/RCTBridge+Private.h' file not found

Environment:
React Native: 0.61.2
React: 16.9.0
Realm-js: 3.2.0

Goals

The project builds successfully and runs on an iOS device without any Realm DB issues.

Expected Results

Existing app functions without any errors with the realm DB.

Actual Results

The app crashed at the launch on the iPad. Below is the error:
React/RCTBridge+Private.h file not found in node_modules/realm/react-native/ios/RealmReact/RealmReact.mm:27:9

Steps to Reproduce

  1. Create a new app with react-native init RNDeamo
  2. npm install --save realm@3.2.0
  3. react-native link realm --platforms ios. Run "pod install"
  4. Open RNDemo.xcworkspace and clean the project. Then build the app.

Build fails with the above-mentioned error.

Version of Realm and Tooling

  • Realm JS SDK Version: 3.2.0
  • Node or React Native: React Native 0.61.2
  • Client OS & Version: macOS Mojave
  • Which debugger for React Native: None
@aljs
Copy link

aljs commented Oct 11, 2019

#2460

@Yieron
Copy link

Yieron commented Oct 12, 2019

image

@kneth
Copy link
Member

kneth commented Oct 15, 2019

Please take a look at #2554. It is not completely done yet but you are welcome to help us iterate faster.

@mokai
Copy link

mokai commented Oct 30, 2019

  • drop RealmJS.xcodeproj to project
  • add $(SRCROOT)/../../../ios/Pods/Headers/Public recursive in RealmReact.xcodeproj Header Search Paths

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants