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.
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.
react-native unlinkpod 'react-native-fcm', :path => '../node_modules/react-native-fcm')pod installclean and build@frmrgr thanks
Most helpful comment
For me it was that
react-native linkwrecks 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/iosentry there.