react-native-firebase-analytics: iOS build / installation error
React Native version: 0.40 Error:
/node_modules/react-native-firebase-analytics/ios/RNFIRAnalytics.h:4:9: fatal error: 'FirebaseCore/FIRApp.h' file not found
#import <FirebaseCore/FIRApp.h>
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/Enes/RN/Tviz/ios/build/Build/Intermediates/RNFIRAnalytics.build/Debug-iphonesimulator/RNFIRAnalytics.build/Objects-normal/x86_64/RNFIRAnalytics.o RNFIRAnalytics.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 16 (5 by maintainers)
use #import <Firebase/Firebase.h> instead of @import Firebase, it work for my (React-native 0.42)
@fungilation it depends on how your integrate firebase with your solution
@import Firebase;only works for pod integration I will update readme laterCheck if you have react-native-firebase-analytics v2.0.0 or v3.0.0 installed. Also check if you installed Firebase Analytics through POD. Make sure you imported Firebase in AppDelegate.m
@import Firebase;