-
Notifications
You must be signed in to change notification settings - Fork 24.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
New Arch 0.72.1 issue with use_frameworks! - file not found.How to fix? #38188
Comments
|
It is not a question. I am getting an error when building with
This is the error I get when using This is pretty insulting as well, since I have been fixing tons of packages to work with use_frameworks. The Discussion link - reactwg/react-native-new-architecture#115 does not allow me to report back (since someone turned off all comments there) on you guide to get use_frameworks to work with react-native. Asking me to use Stack Overflow is not useful, considering use_frameworks and RCT_NEW_ARCH_ENABLED=1 is quite new! Compiling node_modules/react-native/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.mm is part of React Native proper and I am unsure which Podspec controls that. I am looking around, and I am sure I can fix the header once I can figure out where the PODSPEC is. There are several under Fabric. |
@billnbell I marked this as a question as you haven't filled the issue template. Specifically you haven't provided the output of Don't you mind editing your response and providing them? We can reopen it afterwards |
OK it is updated thanks. |
Hi @billnbell, can you share your Podfile and the list of dependencies? As a side note, some recommendations. You should install those pods with:
|
I have Flipper permanently turned off in Podfile. Yeah I am using RCT_NEW_ARCH_ENABLED=1. The issues in a ton of rpm packages is Reat-ImageManager, React-utils and React-debug not finding Headers. I am literally entering these into
|
My Podfile.
|
Hi @billnbell, thanks for investigating the issue. Helps like this are very precious as we don't have the capacity to look into all the 3rd party libraries to see what they are using.
This seems a very good suggestion. Could you open a PR with those changes? Also, why do you need those subspecs? I don't like the idea of using them and they should not be needed. |
OK. I will try USE_FRAMEWORKS=static - I did not see that change to the documentation!!! Docs missing... Or I cannot find them :) Instead of |
The pods all need |
I would also say |
Hi @billnbell, thank you so much for the PR. I'll be off for a few days, but I'll make sure the review and land it when I'm back. About your comments/suggestions:
There is some documentation of use_frameworks in the new architecture here. That's why the usage of
Completely agree… and it is already documented in the website! 😅 |
@billnbell patch(es) is still needed on using RN 0.72.3 (and 0.72.4) with I finally got it to build, thanks @billnbell ! Also needed: post_install do |installer| ---AND |
Hi @alex-strae! Probably we just miss the search path that points to (Otherwise, if you can provide a repro with the failure and a commit with the fix, I can port the fix to RN myself!) Thank you so much! |
I had a PR for React-ImageManager and it is stuck in the process. Unsure where it will land. I tried to add it into 0.72.4 but it was rejected due to a conflict in main. Adding seemingly simple improvements are challenging. |
Hi @billnbell. This can happen unfortunately, as your commit was created on top of other changes in the Cocoapods infrastructure that made pretty hard to cherry-pick it safely. One thing to make sure your changes would be into 0.72 is tofollow these steps:
Thanks to these steps, the release crew will be able to simply I'm sorry for the effort this process is requiring. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
Getting error on RCTImageComponentView.mm - node_modules/react-native/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.mm
How do I fix this ?
React Native Version
0.72.1
Output of
npx react-native info
Steps to reproduce
See above
Snack, code example, screenshot, or link to a repository
See above
The text was updated successfully, but these errors were encountered: