Comments (16)
use #import <Firebase/Firebase.h> instead of @import Firebase, it work for my (React-native 0.42)
from react-native-firebase-analytics.
Check 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;
from react-native-firebase-analytics.
@fungilation it depends on how your integrate firebase with your solution
@import Firebase;
only works for pod integration
I will update readme later
from react-native-firebase-analytics.
I have same issue. I'll try @damir-sirola suggestion. Anyway, I'm curious why no mention in readme to install react-native-firebase-analytics
from react-native-firebase-analytics.
I also have this issue, I installed react-native-firebase-analytics also but it doesn't help me.
from react-native-firebase-analytics.
I downgraded to 0.39. but using pods solved my issue (in 0.40), just type pod update few times, reset everything etc. @phOenix214
from react-native-firebase-analytics.
I hit the same error. I'm on RN 0.41.2 and latest of this package.
The solution after much poking around:
@import Firebase;
at top of AppDelegate.m
(as mentioned by @damir-sirola)
But also, I found I needed to comment out all the unused targets in Podfile
or compiling would fail too, like so:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target '<app_name>' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for <app_name>
pod 'Firebase/Core'
# target '<app_name>-tvOSTests' do
# inherit! :search_paths
# # Pods for testing
# end
#
# target '<app_name>Tests' do
# inherit! :search_paths
# # Pods for testing
# end
end
#target '<app_name>-tvOS' do
# # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# # use_frameworks!
#
# # Pods for <app_name>-tvOS
#
# target '<app_name>-tvOSTests' do
# inherit! :search_paths
# # Pods for testing
# end
#
#end
@evollu, README can use some updating with these 2 bits for other users? Thanks for this package.
As an aside, I'm using this package in conjunction with CodePush. I'm currently stuck where building this in XCode with a Staging
config (duplicate from Release), to a physical device, the build would fail. Building the same to the simulator however succeeds. Release
and Debug
builds to both device and simulator would succeed. Can't figure out why the Staging build to device fails.
from react-native-firebase-analytics.
@Mactub07 does not work if you're using frameworks
from react-native-firebase-analytics.
I use frameworks myself
I just have #import "RNFIRMessaging.h"
only in my appdeletegate.m
from react-native-firebase-analytics.
If I have use_frameworks!
and that import only in my appdelegate.m, I get the FirebaseCore/FIRApp.h error noted in the first comment.
Using react-native 0.43.1
from react-native-firebase-analytics.
what firebase iOS version are you using? I remember 4.0 introduced breaking change so this repo isn't compatible with that
from react-native-firebase-analytics.
yea i saw the recent note, so am using 3.16.0
I figured it out finally. See my notes on evollu/react-native-fcm#377, which is the same problem, but on your other package, react-native-fcm.
from react-native-firebase-analytics.
Where is inherit! :search_paths?
from react-native-firebase-analytics.
inherit! :search_paths is a directive you can use in a Podfile. another react-native module called tipsi-stripe requires it to be in your Podfile but seems to conflict with react-native-fcm. My guess is that on link time, the linker can't find the firebase headers in the Pod-provided search paths if that directive is on.
from react-native-firebase-analytics.
I tried the following:
#import <Firebase/Firebase.h> instead of #import 'firebase.h'
in my bridging header ( as I am using Swift)- Changed my Pod file to reference Firebase version 3.16 like below:
pod 'Firebase', '~> 3.16', :subspecs => [
'Analytics',
'Messaging',
]
- I do not have inherit! :search_paths in my Podfile
- Added import Firebase to the header of my AppDelegate.swift
I still get the error reported by the issue Unable to find#import <FirebaseCore/FIRApp.h>
in RNFIRMessaging.h
from react-native-firebase-analytics.
Any update on this issue?
from react-native-firebase-analytics.
Related Issues (20)
- Multiple dex files define HOT 2
- [iOS] <FIRAnalytics/WARNING> setScreenName:screenClass: must be called after a view controller has appeared HOT 7
- "setCurrentScreen must be called from the main thread" error on Android
- How to get Firebase SDK version? HOT 2
- How can I view events by user like in Mixpanel?
- :app:transformClassesWithDexForDebug or ':app:processDebugGoogleServices' errors on compile
- screen_view is reserved, but not in list of reserved names
- Pod vs react-native link HOT 3
- Multiple dex files define Lcom/google/firebase/FirebaseException; HOT 2
- google-services plugin could not detect any version for com.google.android.gms
- [Suggestion] A Logging Feature HOT 1
- firebase-js-sdk compatible? HOT 1
- Tracking Screen Views HOT 6
- error: cannot find symbol import com.evollu.react.fa.FIRAnalyticsPackage; HOT 1
- Identifying devices HOT 2
- Default FirebaseApp is not initialized in this process [processName]. Make sure to call FirebaseApp.initializeApp(Context) first.
- ADD_TO_CART not showing item_name attribute & event demographics not showed
- Can't get event from Android.
- missing screenClass on screenView HOT 5
- TypeError: undefined is not an object (evaluating 'FIRAnalytics.setUserId')
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-firebase-analytics.