question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RCTBridgeModule 'file now found' issues

See original GitHub issue

#ISSUE I tried the 3 ways of linking the lib to ios but this doesnt seem to be working fine (beside andorid which works just fine). Issue happening is shown below:

In file included from /Users/studocu/development/app/node_modules/react-native-store-review/ios/RNStoreReview.h:2:
../../react-native/React/Base/RCTBridgeModule.h:10:9: fatal error: 'React/RCTDefines.h' file not found
#import <React/RCTDefines.h>
        ^~~~~~~~~~~~~~~~~~~~

1 error generated.



** BUILD FAILED **

Some people suggesting changes in React-native folders and so on. Not sure how to make this work though!?

FYI: react-native-cli: 2.0.1 react-native: 0.58.6 Xcode 10.2 react-native-store-review: 0.1.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
abidulrmdncommented, Jun 13, 2019

Only way I was able to make this work is by changing react-native/React/Base/RCTBridgeModule.h and putting

#import "RCTDefines.h"

instead of

#import <React/RCTDefines.h>

but then I cannot append that to my project (nor this is a problem in react!) Not sure why we use 2 different ways of importing and why the normal one doesn’t work!

1reaction
patbenatarcommented, Sep 6, 2019

I was able to get it working by using the cocoapods approach instead of react-native link: https://github.com/oblador/react-native-store-review#using-cocoapods

Read more comments on GitHub >

github_iconTop Results From Across the Web

RCTBridgeModule 'file now found' issues #34 - GitHub
ISSUE I tried the 3 ways of linking the lib to ios but this doesnt seem to be working fine (beside andorid which...
Read more >
`React/RCTBridgeModule.h` file not found - Stack Overflow
This issue is occurring due to pods are not shared for all targets. So I need to add newly added target (app.staging) inside...
Read more >
iOS : Build failed 'React/RCTBridgeModule.h' file not found
iOS : Build failed 'React/ RCTBridgeModule.h' file not found [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS ...
Read more >
[Solved]-`React/RCTBridgeModule.h` file not found-Reactjs
In my case this particular problem happened when I was trying to archive a 0.40+ react-native app for iOS (solution was found here:...
Read more >
React Native App no longer builds … | Apple Developer Forums
Cannot initialize a parameter of type 'NSArray<id<RCTBridgeModule>> *' with an rvalue ... file not found error occurs so give proper or end to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found