Skip to content

Conversation

@yupferris
Copy link
Contributor

Depending on which modules are built and in which order, React/RCTBridgeModule.h may or may not be available. Some workarounds for this include disabling parallel builds (https://stackoverflow.com/a/43340802), manually linking against the library instead of using cocoapods (#87 (comment)), changing the way source files are imported (https://stackoverflow.com/a/41664041), and some others. These workarounds appear to fundamentally disregard the actual problem, which is that these React Native packages all depend on React, and need to be built after the React package has been built. So let's describe this dependency so the build system can solve the issue for us consistently.

Another example of this same issue/fix with another React Native package can be found here.

Fixes #87.

Depending on which modules are built and in which order, `React/RCTBridgeModule.h` may or may not be available. Some workarounds for this include disabling parallel builds (https://stackoverflow.com/a/43340802), manually linking against the library instead of using cocoapods (ocetnik#87 (comment)), changing the way source files are imported (https://stackoverflow.com/a/41664041), and some others. These workarounds appear to fundamentally disregard the actual problem, which is that these React Native packages all depend on React, and need to be built after the React package has been built. So let's describe this dependency so the build system can solve the issue for us consistently.

Another example of this same issue/fix with another React Native package can be found [here](charlires/react-native-segment-analytics#33).

Fixes ocetnik#87.
@yupferris
Copy link
Contributor Author

yupferris commented Jul 20, 2018

Note that on further inspection, I've realized this was removed in bdcf498. I'm not sure this was the correct solution for #71, but admittedly I'm not sure what the proper fix should be. It would seem I'm not the only one who's discovered this problem after that patch was merged, though (see #82 as well).

@ocetnik ocetnik merged commit 46a8e63 into ocetnik:master Aug 19, 2018
@ocetnik
Copy link
Owner

ocetnik commented Aug 19, 2018

Thank you so much @yupferris 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fatal error: 'React/RCTBridgeModule.h' file not found

2 participants