evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

'RNFIRMessaging.h' file not found #497

Open theohdv opened 6 years ago

theohdv commented 6 years ago

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.

jaclynjessup commented 6 years ago

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

baba43 commented 6 years ago

Same issue here.

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

jaysig commented 6 years ago

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

frmrgr commented 6 years ago

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.

ohsory1324 commented 6 years ago

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
jonajgs commented 5 years ago

@frmrgr thanks