Sentry-react-native: Fatal error: 'React/RNSentry.h' file not found

Created on 25 Dec 2017  ·  4Comments  ·  Source: getsentry/sentry-react-native

OS: MacOS
Platform: iOS

Output of node -v && npm -v && npm ls --prod --depth=0

v8.9.3
5.5.1
├── @yfuks/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Config:

Sentry.config('****').install();

I have following issue:

Description goes here ...

Steps to reproduce:

  • create new project
  • npm install react-native-sentry --save && react-native link react-native-sentry
  • reatc-native run-ios

Actual result:

  • fatal error: 'React/RNSentry.h' file not found

import

Most helpful comment

You must:

  1. Run manually on ios folder pod repo update && pod install
  2. Change <React/RNSentry.h> to <SentryReactNative/RNSentry.h> on AppDelegate.m

All 4 comments

I solved problem. Manual link binary libRNSentry.a

When doing react-native link react-native-sentry, a SentryReactNative pod gets added to my Podfile. I was also experiencing this issue when importing <React/RNSentry.h>, but seem to have resolved it by importing <SentryReactNative/RNSentry.h> instead.

You must:

  1. Run manually on ios folder pod repo update && pod install
  2. Change <React/RNSentry.h> to <SentryReactNative/RNSentry.h> on AppDelegate.m

Why is the doc saying <React/RNSentry.h> when it should be <SentryReactNative/RNSentry.h>? Is it an error? Or is it CocoaPods or Xcode specific? @HazAT

Was this page helpful?
0 / 5 - 0 ratings