-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Provide more clarity/corrections on Fabric codegen iOS #4331
Comments
Ok, I've figured out this part;
I had to go and link the Webkit framework through Xcode, which makes me think either something's missing in the build in Podspecs, or there should be some other step in this article about adding that framework in the iOS section. I'm still seeing this error:
Which I assume is the original error the docs warn about, and my question for "where should I go to remove this code?" remains. I will keep troubleshooting on my own but I imagine some extra clarity in the docs will be helpful when you folks get around to it. |
I'm having the same issue with a decoupled library. I left a comment in the pull request that tried to solve this facebook/react-native#47176 (comment) |
Thank you for this, can confirm it's an issue. I missed cherry-picking this change in the release: https://github.com/facebook/react-native/pull/47195/files, it'll have to go out in 0.76.2 |
@migueldaipre I ran into the same issue and was able to fix the error. See facebook/react-native#47217 (comment) |
Description
Hey folks, the final warning on the Fabric native component documentaiton page is a little confusing to me, in particular, the second bullet point:
The callout also mentions fixes will be released in React Native 0.76.1, but that does not seem to be the case.
What is the problem?
I'm not exactly sure what files to remove the
CustomWebViewCls
symbols for. I have tried a few different file paths:ios/Pods/Headers/Private/React-RCTFabric/React/RCTThirdPartyFabricComponentsProvider.h
node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.h
node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.mm
But I run into one of two problems:
yarn run ios
or through Xcode build directlyUndefined symbol: _OBJC_CLASS_$_WKWebView
Additionally, the docs said
0.76.1
would not have this issue, but it seems to have persisted.You can see the code I've been working on at https://github.com/coolsoftwaretyler/fabric-tutorial-react-native-webview. Android is working great!
How can we address it?
Can you please provide specific file paths, screen shots, or other information to make the fix clearer for readers? Or even pointing to whatever PR made this fix so I can use
patch-package
or something to use it on my machine.And perhaps update what version we should expect the fix in.
Why is it important?
Understanding how to build Fabric components will help the community adopt the New Architecture faster, and I think the introduction article to this tool should be as accurate and helpful as possible.
Who needs this?
People who want to build custom Fabric native components (app developers, library authors, potential React Native contributors)
When should this happen (use version numbers if needed)?
Whenever's clever!
The text was updated successfully, but these errors were encountered: