-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React-Native 0.61.2 "React/RCTBridgeModule.h" file not found #139
Comments
same issue! |
Have you tried to add library search path for react to UnityView.xcodeproj? |
@alisherakb I tried that, but was not able to get the build working yet - maybe I had an incorrect search path. |
Try to add the following both to the project and the target Library search paths of RNUnityView.xcodeproj and set it to recursive. |
I didn't have time to try the solution given in stackoverflow https://stackoverflow.com/questions/58373425/react-rctdefines-h-file-not-found-rn0-61/58398989#58398989 Wondering if you guys have tried the solution?! |
Same problem here. Pretty sure it has to do with removal of Tried suggestion here, removing facebook/react-native#25838 (comment) Also tried @alisherakb's suggestion above but didn't solve for me. Also not sure about editing Library search paths; should be Header search paths, no? Even then, Wondering if it's a load order issue, since new React is managed by CocoaPods. Perhaps Xcode is trying to build |
Wondering if adding a podspec as per #136 would help, so that |
|
I tried creating a podspec - still getting the same error. Not familiar with creating podspec so if anyone has a suggestion here it would be greatly appreciated!
|
@marlon-wiprud did you also add |
@marlon-wiprud I tried adding .podspec but I get other errors that are in But, @alisherakb 's answer actually works. |
@benjarwar yes - turns out that the error actually came from a different file after I set this up. Making some progress atm , will update if I get this working. |
@ziyoshams @marlon-wiprud I'm also trying this out, and now getting this in
I suspect we also need to add a Podspec to our local |
Tried adding a Podspec to Also tried updating Header Search Paths in both my root project (
@marlon-wiprud any luck on your end? |
Current thinking is that the header search paths in RNUV itself need to be updated: Those paths are weird. We may also need to update how we're importing, so instead of:
It should be:
Because with double quotes, Xcode will look in the current directory of the file making the import first. In our case, the |
I decided to go with @alisherakb 's answer. I created this little shell script that runs as part of my npm builds.
It updates Header Search in |
Has anyone had any success or tip to make this project works on iOS? |
@rpassareti we switched back to manually linking That got us past the initial build errors described in this issue, but we're encountering others and haven't yet successfully built with iOS and RN |
@benjarwar To be clear, my script actually replaces |
@ziyoshams gotcha. But if we were to PR this change to the Xcode project, I think we'd want to leave in the old search paths for backwards compatibility. |
Yes. That's why I run that script in my npm build scripts. (e.g |
For anyone interested in getting this lib working with Pods, we figured out a solution. See comments in #136. |
Hi @benjarwar Did you get success build with manual linking? |
@sburaksak we did, with @ziyoshams's script. But then later opted to switch to CocoaPods as discussed in #136. |
I could run this library up to version
0.60.5
.But I am getting
'React/RCTBridgeModule.h' file not found
with the latest version(0.61.2)
.A lot of people are suggesting to run
pod install
for this error, but it does not work.I know that
React.xcodeproj
was removed from version0.61
, and it is a part of the issue.Because this package is not updated lately, I am sure we have to find a workaround.
Curious if anyone is getting the same error or already has solved it.
The text was updated successfully, but these errors were encountered: