react-native-fcm icon indicating copy to clipboard operation
react-native-fcm copied to clipboard

'RNFIRMessaging.h' file not found

Open theohdv opened this issue 9 years ago • 6 comments

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.

theohdv avatar Aug 09 '17 16:08 theohdv

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

jaclynjessup avatar Aug 24 '17 18:08 jaclynjessup

Same issue here.

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

baba43 avatar Aug 25 '17 12:08 baba43

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

jaysig avatar Sep 02 '17 23:09 jaysig

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.

frmrgr avatar Dec 05 '17 22:12 frmrgr

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

ohsory1324 avatar Dec 17 '17 05:12 ohsory1324

@frmrgr thanks

jonajgs avatar Jul 22 '18 09:07 jonajgs