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.

'React/RCTUtils.h' file not found inRNDeviceinfo.m

See original GitHub issue

Bug

I did the update of react-native version 0.61.4 (starting from 0.60) and compiling IoS goes wrong. I don’t use Pod, i use autolinking. I tried to unlink react-native-device-info and manually linking it but nothing has changed.

Environment info

React native info output:

System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 25.41 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.1.0 - /usr/local/bin/node
    npm: 6.9.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
  IDEs:
    Android Studio: 3.3 AI-182.5107.16.33.5314842
    Xcode: 11.2/11B52 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.4 => 0.61.4 
  npmGlobalPackages:
    react-native-cli: 2.0.1

Library version: 5.3.0

Steps To Reproduce

Warning: version react-native must be >= 0.61.x

  1. Add react-native-device to react native project
  2. Use manual linking or auto linking, it’s the same
  3. build for ios

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:9

github_iconTop GitHub Comments

1reaction
fortinmikecommented, Dec 2, 2020

For me, the fix was to remove the reference to react-native-device-info’s xcodeproj (RNDeviceInfo.xcodeproj) from my custom Xcode project. No need to remove anything on disk. I had to do this for a couple other dependencies I had in my project.

0reactions
nishanBendecommented, Apr 16, 2020

This could happen if RNDeviceInfo project is not removed from the Libraries directory after upgrading to 0.61.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'React/RCTUtils.h' file not found inRNDeviceinfo.m · Issue #887
Bug I did the update of react-native version 0.61.4 (starting from 0.60) and compiling IoS goes wrong. I don't use Pod, i use...
Read more >
'React/RCTUtils.h' file not found - Stack Overflow
The podfile you provided is missing the reference to react itself, here is one example of how you can fix it (with react-native...
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