RCTAutoComplete icon indicating copy to clipboard operation
RCTAutoComplete copied to clipboard

'React/RCTBridgeModule.h' file not found

Open hery opened this issue 7 years ago • 3 comments

Hi there!

I'm trying to integrate RCTAutoComplete into a Swift project, and I'm having issues linking React to the RCTAutoComplete project. I keep getting a 'React/RCTBridgeModule.h' file not found error in RCTAutoComplete.h

I've successfully integrated React-Native into my Swift project, so I'm thinking it's some sort of scope issue, since both RCTAutoComplete and React are in /node_modules.

My package.json is as follow:

"dependencies": {
    "react": "^16.2.0",
    "react-native": "^0.50.4",
    "react-native-autocomplete": "^0.4.0",
    ...
}

My header search paths are the original ones:

  • $(inherited)
  • /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include (is that one needed?)
  • $(SRCROOT)/../../React
  • $(SRCROOT)/../../node_modules/react-native/React

I tried to play with those paths without success, and I did a bunch of npm install and pod install without success either.

hery avatar Jan 26 '18 10:01 hery

Solved with https://stackoverflow.com/a/43340802/816537

I'll let you have a look and maybe see why an explicit target import was required here before closing this ticket.

hery avatar Jan 31 '18 10:01 hery

Actually never mind, I was able to build the RCTAutoComplete target but then it broke my project's target because of duplicate declarations (probably because of importing React into the RCTAutoComplete project)

hery avatar Jan 31 '18 11:01 hery

Anyway, I gotta ship so I'll just use something else.

hery avatar Jan 31 '18 11:01 hery