quickstart-unity: iOS Analytics Not Showing Up
I’ve followed the instructions for both Android and iOS. Android is working without adding any additional code to my project. iOS is not. I am getting a warning in the output that implies I am supposed to add some code, but I’m assuming the Unity plugin is supposed to take care of that for me.
Notable Log Messages…
2017-08-16 23:13:59.153169-0700 PCCApp[6525:3234594] [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
2017-08-16 23:13:59.153 PCCApp[6525] <Error> [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
UnloadTime: 0.234625 ms
2017-08-16 23:14:00.215690-0700 PCCApp[6525:3234418] startMonitoring.
2017-08-16 23:14:00.226582-0700 PCCApp[6525:3234418] No default app present, ignore the previous FIRApp configuration warning (I-COR000003).
No default app present, ignore the previous FIRApp configuration warning (I-COR000003).
Firebase.FirebaseApp:CreateInternal()
Firebase.FirebaseApp:CreateAndTrack(CreateDelegate)
Firebase.Analytics.FirebaseAnalytics:.cctor()
..
2017-08-16 23:14:00.548473-0700 PCCApp[6525:3234595] [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-08-16 23:14:00.548 PCCApp[6525] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
2017-08-16 23:14:01.358572-0700 PCCApp[6525:3234562] [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-08-16 23:14:01.358 PCCApp[6525] <Warning> [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2017-08-16 23:14:01.360785-0700 PCCApp[6525:3234562] [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
2017-08-16 23:14:01.360 PCCApp[6525] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
What am I missing?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (8 by maintainers)
Yesterday afternoon we found a bug in Xcode Project level integration of Cocoapods when building for iOS which is probably what both of you are using. The Firebase iOS 4.0.4 SDK was moved to nanopb which defines a couple of preprocessor macros in the pod (they’re not default compile options). Since our Xcode Project level integration implements a subset of what the Cocoapods “pod” tool does, it ends up not applying the required preprocessor macros defined by nanopb. This results in the Firebase iOS SDK building with one set of options and nanopb in your project (compiled from source) with a different set of options, ultimately a few structures used to call into nanopb differ between the Firebase binary libs and nanopb resulting in mayhem.
So for current users of the 4.0.3 SDK you need to do the following:
We’re feverishly working on a fix right now in https://github.com/googlesamples/unity-jar-resolver I’ll post an update when we have something you can drop into your projects and then finally when we integrate into the upcoming 4.0.4 release.