React-native-fcm: 'RNFIRMessaging.h' file not found

Created on 9 Aug 2017  路  6Comments  路  Source: evollu/react-native-fcm

What version of RN and react-native-fcm are you running? __7.5.1__
What device are you using? (e.g iOS9 emulator, Android 6 device)? __IOS10 emulator__
Is your app running in foreground, background or not running? __Not applicable__

I followed the README but impossible to build my app because of this error.

Most helpful comment

For me it was that react-native link wrecks xcode project when done on windows. So I had to go to Header Search Paths in build settings and manually add $(SRCROOT)/../node_modules/react-native-fcm/ios entry there.

All 6 comments

I am also having this issue. I am using ExpoKit as well & build always fails.

Same issue here.

Not using ExpoKit, but a newly created React-Native app.

Did you guys link the file in Build Phases --> Link Binary With Libraries --> + on the bottom --> add libRNFIRMessaging.a

For me it was that react-native link wrecks xcode project when done on windows. So I had to go to Header Search Paths in build settings and manually add $(SRCROOT)/../node_modules/react-native-fcm/ios entry there.

If you are using ExpoKit, I hope it will help you.

  1. react-native unlink
  2. add this library to Podfile (eg. pod 'react-native-fcm', :path => '../node_modules/react-native-fcm')
  3. pod install
  4. Xcode -> clean and build

@frmrgr thanks

Was this page helpful?
0 / 5 - 0 ratings