question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v1.5.0 iOS build fails with RN 0.59

See original GitHub issue
fatal 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:closed
  • Created 4 years ago
  • Reactions:49
  • Comments:38 (2 by maintainers)

github_iconTop GitHub Comments

205reactions
Ashutosh8127commented, Nov 13, 2019

Replace #import <React/RCTRootContentView.h> with #import “RCTRootContentView.h”

Problem Resolved

84reactions
GunnarAKcommented, Nov 1, 2019

Got the same error using 1.5.0 on RN 0.59.9

To temporarily downgrade put this in your package.json:

"react-native-gesture-handler": "~1.4.0",

And reinstall your dependencies

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found