Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

'RCTBridgeModule.h' file not found #33

Closed
Richard-Cao opened this issue Feb 18, 2016 · 24 comments
Closed

'RCTBridgeModule.h' file not found #33

Richard-Cao opened this issue Feb 18, 2016 · 24 comments

Comments

@Richard-Cao
Copy link
Contributor

No description provided.

@Richard-Cao
Copy link
Contributor Author

#32

@Richard-Cao
Copy link
Contributor Author

@yorkie

@fakefish
Copy link

+1

@yorkie
Copy link
Owner

yorkie commented Feb 20, 2016

What's the screenshot which you get and the search path, this works at my machine~

@Richard-Cao
Copy link
Contributor Author

/Users/pan/GitHub/reading/node_modules/react-native-wechat/ios/RCTWeChat.h:10:9: 'RCTBridgeModule.h' file not found build failed
@yorkie

@kaix1n
Copy link

kaix1n commented Feb 25, 2016

cd Example && npm install

@stevenxiale
Copy link

me too, how to deal with this problem

@stevenxiale
Copy link

$(SRCROOT)/../node_modules/react-native-wechat/ios

@Richard-Cao
Copy link
Contributor Author

@stevenxiale
change RCTWebChat.xcodeprojBuild SettingsSearch PathsHeader Search Paths to
$(SRCROOT)/../../react-native/React and
$(SRCROOT)/../../react-native/Libraries

@p1204382
Copy link

p1204382 commented Dec 1, 2016

@Richard-Cao thanks it is work

@annelorraineuy
Copy link

This failed for me :(
screen shot 2016-12-02 at 3 38 54 pm

@maple-leaf
Copy link

I sovle by upgrading the os from 10.10.x to newest macOS, and the xcode.

@4umo
Copy link
Contributor

4umo commented Jan 9, 2017

If you are using the most recent version of react native (0.40 at time of post) - the proper import syntax has changed for your Objective C file:
#import <React/RCTBridgeModule.h>
Replace with this. Same syntax will apply for importing RCTUtils or any other react library.

@yeegr
Copy link

yeegr commented Jan 11, 2017

It would be more helpful if you could specify which "Objective C files" should be edited in this case.

@4umo
Copy link
Contributor

4umo commented Jan 11, 2017

RCTWeChat.h and RCTWeChat.m - or any file referencing a react native file. You'll need to change the import structure of any react file references for 0.40
https://github.com/facebook/react-native/releases/tag/v0.40.0

@shakilcse12
Copy link

shakilcse12 commented Apr 10, 2017

changing the import Line from #import "RCTBridgeModule.h" to #import "React/RCTBridgeModule.h"
solved my problem

@rajeshpanwar007
Copy link

@annelorraineuy Same error is comming in my project. I have tried and searched a lot but not able to fix. How did you fix it ?

@waifo
Copy link

waifo commented Dec 20, 2017

I have tried the solutions above, none of them worked
where does this path $(SRCROOT)/../../react-native/React point to...?

@zhaoquntao
Copy link

change #import <React/RCTBridgeModule.h>
to #import "RCTBridgeModule.h"

@jeremyfrancis
Copy link

No solution stilll....

@BachirKhiati
Copy link

BachirKhiati commented Apr 24, 2018

the solution for me was :
screen shot 2018-04-24 at 5 37 55

@zedtux
Copy link

zedtux commented Jun 11, 2018

Thank you @BachirKhiati, it solved my issue I had with a "-cal" target for Calabash. 👍

@sturmenta
Copy link

For me it worked like this:

  1. xcode -> build settings -> header search paths
  2. add $(SRCROOT)/../node_modules/react-native-fbsdk/ios/RCTFBSDK

Where for you react-native-fbsdk is the name of you module and RCTFBSDK is the name of the subfolder

@sultan-arshi
Copy link

change #import "RCTBridgeModule.h" to #import "React/RCTBridgeModule.h"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests