Mizlul
Mizlul

Reputation: 2280

'React/RCTDefines.h' file not found

I am trying to build my react native app on Xcode but for some reason I am getting 'React/RCTDefines.h' file not found. This is happening after tried to add OneSignal push notification library.

Initially it was complaining about libRTCAnimation but this I fixed by adding the libRTCAnimation.a into Link Binary with Libraries.

Upvotes: 0

Views: 5087

Answers (1)

Max
Max

Reputation: 701

I had the same error when trying to install Onesignal into detached expo project. I fixed it to do next things:

  1. Remove one signal path from Header Search Path
  2. Unlink onesignal module - react-native unlink react-native-onesignal
  3. Added podspec from this link
  4. Added next code into pod file:

    pod 'react-native-onesignal', :path => '../node_modules/react-native-onesignal'

  5. do `pod install'

Upvotes: 1

Related Questions