-
Notifications
You must be signed in to change notification settings - Fork 24k
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
0.74.2: RCTDeprecation/RCTDeprecation.h file not found #45029
Comments
I also checked and it's breaking starting from 0.74.0 |
@cipolleschi can you have a look when you have some time? thanks 🙏 |
Also getting this issue :'( |
Looking into it. |
@fbp93 I tried the app and the main target builds fine with static libraries and static frameworks. AudioManager fails, but it fails because I think that the problem is in the header search paths. If you look at the search paths for the main project, they look like this: The header search paths of the AudioManager looks like this: The structure of React-Core on disk is like this: And, as you can see, there is no folder called This type of setup, anyway, is not something we recommend: it would be better to create a proper pod for an external library, to benefit from all the automations we are building for autolinking. That said, @fbp93 and @max-quirk, if you can provide a reproducer where I can see the |
@cipolleschi Shouldn't the header search path link to the headers in the pods? Because there I see the public folder. Have you been able to make the audio manager build by that change ? 🤔
Unfortunatly I have a lots of them with the current setup, so it's not something I was plan to do immediatly, but I'll definitely consider it |
nope, because with frameworks, the items that are copied to the bundle and used for linking are the content of the
Unfortunately not, once I saw that the setup was not standard and the error was different, I stopped.
😞 But I understand. Working with legacy projects is tough. I'm going to be on PTO next week, but I plan to resume the work on this when I'm back. |
the weird thing is that the same setup was working fine with the previous react and even if I try to remove the public it's not working anyway 🤔
Actually it seems that sometimes I get your same error and sometimes the RCTDeprecation one, so I think it's kind of related. Probably if we are able to make it build we may fix both or understand more 🤔 |
Description
I'm trying to bump my project to React Native 0.74.2, but iOS is failing to compile due to the following issue:
This is happening only when I try to link a static library to my project which contains some object C code that imports React native.
I reproduced the issue on a template project and tested with different versions:
Steps to reproduce
Perform the following commands:
React Native Version
0.74.2
Affected Platforms
Other (please specify)
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/fbp93/RN-0.74.2
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: