v1.5.0 iOS build fails with RN 0.59
See original GitHub issuefatal error: 'React/RCTRootContentView.h' file not found
#import <React/RCTRootContentView.h>
v1.4.1 built fine with RN 0.59 but v1.5.0 fails in the Xcode build. It appears to be related to this PR updating the project to RN 0.61.
Perhaps you could do something like this for backwards compatibility?
#if __has_include(<React/RCTRootContentView.h>)
#import <React/RCTRootContentView.h>
#endif
...
if ([parent isKindOfClass:[RCTRootView class]]) {
#if __has_include(<React/RCTRootContentView.h>)
[((RCTRootContentView*)rootContentView).touchHandler cancel];
#else
[(RCTRootView*)parent cancelTouches];
#endif
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:49
- Comments:38 (2 by maintainers)
Top Results From Across the Web
Developers - v1.5.0 iOS build fails with RN 0.59 - - Bountysource
v1.4.1 built fine with RN 0.59 but v1.5.0 fails in the Xcode build. It appears to be related to this PR updating the...
Read more >How to fix error in React-Native@0.59.9 IOS Build
I faced this issue with React Native version 0.61.2 and this worked for me. Navigate to the ios folder of the app and...
Read more >react-native-gesture-handler - npm
React Native Gesture Handler provides native-driven gesture management APIs for building best possible touch-based experiences in React Native.
Read more >react-native-orientation-locker: Documentation | Openbase
RN 0.58 + Android target SDK 27 maybe cause Issue: java.lang. ... If you get the following build error on iOS: ld: library...
Read more >ReactNative Android从0.53.0到0.59.1升级记录 - CSDN博客
项目迭代了60多个版本之后,我们迎来了一次不得不升级RN版本的节点. ... Error:(9, 5) error: resource android:attr/dialogCornerRadius not found.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Replace #import <React/RCTRootContentView.h> with #import “RCTRootContentView.h”
Problem Resolved
Got the same error using 1.5.0 on RN 0.59.9
To temporarily downgrade put this in your package.json:
And reinstall your dependencies