-
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
<React/RCTLog.h> <React/RCTBridge.h> are not found since I upgrade react-native to 0.40 #12042
Comments
In addition to those above I will sometimes get Could this possibly be 3rd party library related? The errors never occur in a dependency library. Or possibly Did all the steps above plus react-native: 0.40.0 EDIT which all have been updated for 0.40 RN. I'm not able to get a new repo to upgrade to v0.40 with |
same issue here |
In addition on RCTLocationObserver.m:10 Hope you can help us :-) |
same problem here, this issue gives some advice but nothing worked for me #11721 |
Hello guys, I solved it by disabling parallelization but I don't know if it's a good thing.
EDIT: but this error is back! Don't know what to do..: |
I've followed the above advice ^ and still not getting anything. I believe that fix aims to disable parallelization so the React package can compile first. However it is not solving the problem for me. @oblador If this is a bug do we have a ticket I can refer to? So I've removed my Xcode, deleted derivedData, reset my computer, installed a new Xcode project, |
Try the following:
|
I was upgrading from 0.33, so I settled on using to 0.39 for now, I guess I'll wait until this headers change is not so new anymore |
Thanks LoopIndigo! Now I can compile on Xcode, but when I compile from the Terminal with ** BUILD FAILED ** The following build commands failed: |
@Clovs glad to hear it works. I don't use Are you fine with sticking to XCode or is |
Yeah I'm fine for now with Xcode |
@Clovs thanks you man! |
не за что ))) |
@Clovs сколько же ты времени потратил на магический фикс с порядком компиляции?)))) |
With the help of @LoopIndigo @badasve in two days the issue was solved. |
;) |
@LoopIndigo's solution worked for solving the majority of my issues - Thanks! My Any ideas? |
Have the same problems with 41-rc. This issue should be open! |
@rpylipow Make sure you don't have any That error appears when a header is being imported in both different ways somewhere across the build. |
@LoopIndigo what do you mean by 3rd no point: My was failing in AppDelegate.m file : #import "RCTBundleURLProvider.h" (file not found) |
For my part, I just recreated a new project with 0.40. I suggested you to do the same, to resolve this issue faster. |
ok I will follow your suggestion but it really taking time again setting up all libraries again and including fonts etc :( ... but is there any solution with 0.39.0 version. ????? Now I have 0.39 version. |
For me, after days of struggling, several things were required to get 0.40/0.41 working:
|
@RajanPN You saved my day :) |
Just wanted to follow up to how I resolved the Packager issue I noticed while doing the RN upgrade. This actually fixed the Packager issues mentioned above. |
@Clovs wtf - not sure why that worked, I literally added a library, and then removed it but still had issue, before I added that library, everything was fine. I had to do this work around you added after adding library. WTF is wrong with React-Native? |
I tried all the solutions, but nothings work, i am using RN0.44, apps works fine on simulator as well as on phone with release config. But fails to archive. |
@arun542 I was with same problem only when archiving and I solved adding React as target dependency on build phases settings of your project |
@RajanPN thanks bro |
@geekvijay @herarya Good to know that it worked! |
@agrass i tried that also did not work. In the end i had to recreate the project from scratch and i worked automatically. Something was screwed up in that project. |
Same issue - app builds fine under Simulator but archiving is throwing all kinds of .h not being found from RN package... Guys - this is the complete fix. I am able to archive the project just fine. The target section this fix refers to is under the scheme, Build screen. On top of this I had to add header search paths in my project What a mess!!! Seems to be the same fix as RajanPN highlighted earlier :) |
See facebook/react-native#12042 (comment) - Adds React project as a target in our Release scheme - De-parallelizes the build
I have a feeling a lot of people are getting into this situation by creating a new scheme when wanting to do a prod build. Instead of selecting new scheme from xcode make sure you duplicate your current scheme. Schemes are created with parallelization on by default, also you'd be missing vital things such as including the React build target. Instead of creating a new scheme for production do the following: Goto edit scheme > manage schemes > click the cog after selecting your local scheme and click duplicate scheme, you can then edit that and select build for release. |
Avec ce commit, l'app build correctement via XCode. Tout ce qui est "appreactnative" a maintenant disparu. Tout est renommé "alkeyacricket". À la fois sur android et iOS. Problèmes rencontrés et les solutions : Pb de build : facebook/react-native#12042 (comment)
Tried everything that is mentioned above but still does not work. I am using 0.52. |
The above issue is actually my issue. Somebody has submitted a pull request |
My issue was that I was building on a custom Schema, in my case, "Staging". I had to change the Per-Configuration Build Products Path and the Per-configuration Intermediate Build Files Path to use the "Release" paths instead of the "Staging" path. If you're project contains Pods, you will need to adjust these values in the Pod project as well as change the PODS_CONFIGURATION_BUILD_DIR config for that custom schema so that it matches the Release schema |
Hello Guys, I just updated to RN52 from RN38, solved all of my RCT includes to have the <React/ prefix, and removing all references to react-native in third party modules and now I'm stuck with this issue. I have a 'RCTBridge+Private.h' file not found when trying to build. I tried updating to ^2.2.6, unlink and re-link but still not working. Has anyone been facing he same issue ? Thanks |
@russelh15 Thank you so much! I do not know if this is the ideal solution, however having just spent a half day getting things working I am fine with this. |
I tried deleting node-modules and installing packages back and it worked. Hope this will help someone else :) |
React-native ... |
I do <3 you but sometimes you make me feel crazy... |
I have the same problem.... :( 'React/RCTBridge.h' file not found with expo kit 26 and react-native-beacons-manager |
Hello guys,
<React/RCTLog.h> <React/RCTBridge.h> are not found since I upgrade react-native to 0.40
Sometimes also <React/RCTEventEmitter.h> is not found.
I tried
_"react-native-git-upgrade"
_"rm -rf node_modules/"
_"watchman watch-del-all"
_"rm -fr $TMPDIR/react-*"
_"npm i"
But the build still Fail :-(
The text was updated successfully, but these errors were encountered: