-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
XCode/CocoaPods fails to find yoga/config/Config.h on RN 0.73.2 #69
Comments
Thanks for reporting this issue, it seems clear enough, but to be absolutely sure, I would need more information before we can identify the problem. Can you please provide us with:
The following is not the solution, but I think I can see the root cause of the problem already:
This line is importing Yoga has nothing to do with nodejs-mobile at all, yet this import seems to be occurring:
It might be a naming conflict. React Native traditionally had this file named We'll have to find a way of telling libnode where it should look up its headers from, or then React Native has to fix this upstream by keeping more specific names... |
I just upgraded to RN 0.73.2 and have the same error. I can confirm that the issue is that it's conflicting with Node.h |
I found that it works fine if I change the import from |
Thanks @dylancom, your include change worked for me as well. If anyone needs a workaround until #70 or similar is merged, they can make that change themselves for the moment, and perhaps keep it around with patch-package. I'm using version 18.17.4 of nodejs-mobile-react-native.
|
Fixed now in nodejs-mobile-react-native version 18.17.6 |
Tnx! fixed the name and include by patch. Just naming conflicts. Will upgrade later. |
After upgrading to RN 0.73 (from an ancient version), my builds consistently fail when trying to compile dependencies for this project. Specifically, when XCode tries to compile the pods for nodejs-mobile-react-native, it fails with:
In file included from /Users/mike/MyProject/node_modules/nodejs-mobile-react-native/ios/rn-bridge.cpp:2: /Users/mike/MyProject/node_modules/react-native/ReactCommon/yoga/yoga/node/Node.h:16:10 'yoga/config/Config.h' file not found
I suspect there is something wrong with how nodejs-mobile-react-native's cocoapod is specifying its dependencies. Does this ring true, or do you have any suggestions on how to follow up?
I'm running Node v21.6.0, I followed install instructions recently, pods are up to date, etc..
I think this is the same problem causing #68 and #62, but I wanted to focus in on the yoga dependency issue.
In more detail, when I run
xcodebuild -workspace MyProject.xcworkspace -configuration Debug -scheme MyProject
(or equivalent in XCode or throughyarn run ios
), I get:Also, thanks for maintaining this library!
The text was updated successfully, but these errors were encountered: