Sentry-react-native: iOS - fatal error: 'RCTEventEmitter.h' file not found

Created on 4 Nov 2018  ·  7Comments  ·  Source: getsentry/sentry-react-native

OS:

  • [ ] Windows
  • [X ] MacOS
  • [ ] Linux

_Platform:_

  • [X ] iOS
  • [ ] Android

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

v9.11.1
6.1.0
HomeChefApp@ /Users/javierolivieri/projects/foxbox/homechef/react_mobile
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [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]

npm ERR! peer dep missing: react-native@>=0.56.0, required by [email protected]
npm ERR! invalid: [email protected] /Users/javierolivieri/projects/foxbox/homechef/react_mobile/node_modules/@sentry/wizard/node_modules/xcode
npm ERR! peer dep missing: [email protected], required by [email protected]
npm ERR! peer dep missing: react-native@^0.44.1, required by [email protected]

I have following issue:

/node_modules/react-native-sentry/ios/RNSentryEventEmitter.h:4:9: fatal error: 'RCTEventEmitter.h' file not found

import "RCTEventEmitter.h"

Steps to reproduce:
Follow readme install instructions

Actual result:
Build Failed

Expected result:
Build Successfull

Most helpful comment

What are the header search paths in Xcode for the react-native-sentry library?

I run this steps, and now it's working

_Do NOT use CocoaPods for react-native-sentry
Follow the standard install steps:
a) yarn react-native-sentry
b) react-native link react-native-sentry
If your Podfile was modified by the setup script, remove any reference of ReactNativeSentry
Open Xcode and drag node_modules/react-native-sentry/ios/RNSentry.xcodeproj into your project's Libraries directory
Open your project's "Linked Frameworks and Libraries" and add libRNSentry.a_

All 7 comments

From the README:

react-native-sentry >= 0.39.0 requires react-native >= 0.56.0

You're using [email protected] and [email protected].

From the README:

react-native-sentry >= 0.39.0 requires react-native >= 0.56.0

You're using [email protected] and [email protected].

Hi @se-bastiaan , I'm trying with 0.38.3

"react-native-sentry": "0.38.3",

I'm receive same error

With [email protected]

same issue

react-native-sentry/ios/RNSentryEventEmitter.h:4:9: fatal error: 'RCTEventEmitter.h' file not found

import "RCTEventEmitter.h"

v9.11.1
6.1.0
HomeChefApp@ /Users/javierolivieri/projects/foxbox/homechef/react_mobile
├── [email protected]
├── [email protected]
├── [email protected]
├── lodash.[email protected]
├── lodash.[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]

npm ERR! peer dep missing: eslint@^3.17.0 || ^4.0.0, required by [email protected]
npm ERR! peer dep missing: [email protected], required by [email protected]
npm ERR! peer dep missing: react-native@^0.44.1, required by [email protected]

What are the header search paths in Xcode for the react-native-sentry library?

What are the header search paths in Xcode for the react-native-sentry library?

I run this steps, and now it's working

_Do NOT use CocoaPods for react-native-sentry
Follow the standard install steps:
a) yarn react-native-sentry
b) react-native link react-native-sentry
If your Podfile was modified by the setup script, remove any reference of ReactNativeSentry
Open Xcode and drag node_modules/react-native-sentry/ios/RNSentry.xcodeproj into your project's Libraries directory
Open your project's "Linked Frameworks and Libraries" and add libRNSentry.a_

I am closing this since your issue seems to be fixed.

Mine is not fixed. I have the same probleme and there is no RNSentry.xcodeproj and when i drop other xcodeproj files i get other errors.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bneigher picture bneigher  ·  3Comments

JonasBAJ picture JonasBAJ  ·  3Comments

kriptonhaz picture kriptonhaz  ·  3Comments

juhaelee picture juhaelee  ·  3Comments

sercanov picture sercanov  ·  3Comments