amazon-archives / aws-sdk-react-native

AWS SDK for React Native (developer preview)
Apache License 2.0
631 stars 68 forks source link

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

Open daniel-bytes opened 7 years ago

daniel-bytes commented 7 years ago

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 commented 7 years ago

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

Eptis commented 7 years ago

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

daniel-bytes commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

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.