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

'RCTBridgeModule.h' file not found #33

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

Comments

Projects
None yet
@Richard-Cao
Copy link
Contributor

Richard-Cao commented Feb 18, 2016

No description provided.

@Richard-Cao

This comment has been minimized.

Copy link
Contributor Author

Richard-Cao commented Feb 18, 2016

#32

@Richard-Cao

This comment has been minimized.

Copy link
Contributor Author

Richard-Cao commented Feb 18, 2016

@fakefish

This comment has been minimized.

Copy link

fakefish commented Feb 18, 2016

+1

@yorkie

This comment has been minimized.

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

This comment has been minimized.

Copy link
Contributor Author

Richard-Cao commented Feb 20, 2016

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

@monopieces

This comment has been minimized.

Copy link

monopieces commented Feb 25, 2016

cd Example && npm install

@stevenxiale

This comment has been minimized.

Copy link

stevenxiale commented Feb 29, 2016

me too, how to deal with this problem

@stevenxiale

This comment has been minimized.

Copy link

stevenxiale commented Feb 29, 2016

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

@Richard-Cao

This comment has been minimized.

Copy link
Contributor Author

Richard-Cao commented Feb 29, 2016

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

@p1204382

This comment has been minimized.

Copy link

p1204382 commented Dec 1, 2016

@Richard-Cao thanks it is work

@annelorraineuy

This comment has been minimized.

Copy link

annelorraineuy commented Dec 2, 2016

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

@maple-leaf

This comment has been minimized.

Copy link

maple-leaf commented Jan 3, 2017

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

@Extrct

This comment has been minimized.

Copy link
Contributor

Extrct 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

This comment has been minimized.

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.

@Extrct

This comment has been minimized.

Copy link
Contributor

Extrct 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

This comment has been minimized.

Copy link

shakilcse12 commented Apr 10, 2017

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

@rajeshpanwar007

This comment has been minimized.

Copy link

rajeshpanwar007 commented Nov 7, 2017

@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

This comment has been minimized.

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

This comment has been minimized.

Copy link

zhaoquntao commented Mar 15, 2018

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

@jeremyfrancis

This comment has been minimized.

Copy link

jeremyfrancis commented Apr 19, 2018

No solution stilll....

@BachirKhiati

This comment has been minimized.

Copy link

BachirKhiati commented Apr 24, 2018

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

@zedtux

This comment has been minimized.

Copy link

zedtux commented Jun 11, 2018

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

@sturmenta

This comment has been minimized.

Copy link

sturmenta commented Sep 19, 2018

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

This comment has been minimized.

Copy link

sultan-arshi commented Feb 6, 2019

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

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