RCTAutoComplete
RCTAutoComplete copied to clipboard
'React/RCTBridgeModule.h' file not found
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.
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.
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)
Anyway, I gotta ship so I'll just use something else.