Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Building Core fails in xcode: 'React/RCTBridge.h' file not found #28

Open
daniel-bytes opened this issue Dec 29, 2016 · 6 comments
Open

Comments

@daniel-bytes
Copy link

When I try to build the Core project in xcode, I am getting the error "'React/RCTBridge.h' file not found". I have tried adjusting the "Header Search Paths" and "User Header Search Paths" to point to various folders inside react-native/React, but nothing seems to work. I suspect the problem may be related to the fact that the react native headers are referenced as system headers ("#import <React/RCTBridge.h>"), but I'm lost as to how I can fix this. Any help or more detailed directions would be appreciated.

@Eptis
Copy link

Eptis commented Jan 30, 2017

I'm running into the same issue here. Any place where to look for an answer?

@Eptis
Copy link

Eptis commented Jan 30, 2017

@daniel-bytes which version of react native are you running on?

@daniel-bytes
Copy link
Author

@Eptis : 0.39.2 . I more or less just gave up and started writing Objective-C against the AWS iOS SDK and binding to that directly. Not ideal.

@Eptis
Copy link

Eptis commented Jan 30, 2017

@daniel-bytes I'm on 0.40.0 where they moved the headers into a namespace. I'm currently trying to compile the Core project and added the React project as a dependency:
screen shot 2017-01-30 at 15 13 22

This does help with finding all the headers, but I now run into a problem with the Core library not compiling properly:
screen shot 2017-01-30 at 15 12 45

Do you have any suggestions to resolve this?

@daniel-bytes
Copy link
Author

@Eptis I will try updating soon and see if I can figure it out. As of now I don't really have any recommendations, sorry.

@Eptis
Copy link

Eptis commented Jan 30, 2017

Ok I got it to compile, commented out the "exception" lines which are most likely for an older version of the iOS sdk or something.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants