React Native 0.44.0 using realm 1.3.1 ios.
1) npm link realm
2) open Xcode project. Fails to compile due to RCTBridge.h file not found in RealmReact.mm
same thing
Are you by any chance using React Native as a CocoaPod, or did you create your project using the React Native CLI?
Not as a cocoaPod, using react native CLI
From: Yavor Georgiev notifications@github.com
Reply-To: realm/realm-js reply@reply.github.com
Date: Wednesday, 14 June 2017 at 11:58 AM
To: realm/realm-js realm-js@noreply.github.com
Cc: shauncodal shaun@codal.co.za, Comment comment@noreply.github.com
Subject: Re: [realm/realm-js] RCTBridge.h file not found xCode error (#1048)
Are you by any chance using React Native as a CocoaPod, or did you create your project using the React Native CLI?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
What version of Xcode are you using?
Version 8.3.3 (8E3004b)
From: Yavor Georgiev notifications@github.com
Reply-To: realm/realm-js reply@reply.github.com
Date: Wednesday, 14 June 2017 at 12:01 PM
To: realm/realm-js realm-js@noreply.github.com
Cc: shauncodal shaun@codal.co.za, Comment comment@noreply.github.com
Subject: Re: [realm/realm-js] RCTBridge.h file not found xCode error (#1048)
What version of Xcode are you using?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
I also met the same issue
Dear,
I meet the same issue:
In file included from /node_modules/realm/react-native/ios/RealmReact/RealmReact.mm:21:
../../../react-native/React/Base/RCTBridge+Private.h:12:9: fatal error: 'React/RCTBridge.h' file not found
React-Native: 0.43.1
realm: 1.10.0
Thanks.
Best regards.
Has anyone found a solution for this error? I'm getting the exact same result.
Same here!
I too am seeing this error when trying to build my project with the realm source. It works fine with the NPM installed version, but does not work I include the source.
Working with:
[email protected]
realm@master (last release looks like 1.10.3 released yesterday)
@fealebenpae I'm using Pods to install react native and I got this error too.
Same here! Using Cocoapods to install react native and
"dependencies": {
"react": "^16.0.0-alpha.12",
"react-native": "^0.48.3",
"realm": "^1.12.0"
}
Based on @thevest comment, in the add RealmReact Xcode project add
$(SRCROOT)/../../../../ios/Pods/Headers/Public (recursive)
any work around for this?
my ...ios/Pods/Headers/Public is also empty
同样的错误/usr/local/lib/node_modules/realm/react-native/ios/RealmReact/RealmReact.mm:21:9: 'RCTBridge+Private.h' file not found
This was a common error in older versions of Realm JavaScript and React Native, we haven't observed it after moving to Cocoapods.