My environment: Unity 5.6.2, Firebase for unity: 4.0.2
I build from Unity to Xcode project → success
I build from Xcode to Game on iPhone → success
But when i run it on iPhone, i got error:
2017-07-25 10:31:20.370179+0700 customer[415:90377] [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: Firebase را به پروژه اپل خود اضافه کنید | Firebase for Apple platforms.
2017-07-25 10:31:20.370 customer[415] [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: Firebase را به پروژه اپل خود اضافه کنید | Firebase for Apple platforms.
I am having this problem with latest Unity and Firebase versions. It seems to be working correctly and reading the plist file but I am getting the same line in my logs, which worries me.
I manually added “[FIRApp configure];” to XCode Project, inside “didFinishLaunchingWithOptions” and the warning disappeared. But must I do this? If so, I cannot have Unity auto generate my XCode project!, I must type this every single time I export it.
So, there must be something missing that does this automatically. What am I missing here?
Changing Cocoapods integration setting from “Xcode Workspace” to “Xcode Project” resolved this issue for us. Assets > Play Services Resolver > iOS Resolver > Settings.
This revealed a seperate issue we fixed in our Xcode project by added “PB_FIELD_32BIT=1, PB_NO_PACKED_STRUCTS=1” to “Preprocessor Macros”, which is found in Unity-iPhone > Build Settings > then just CMD+F for “Preprocessor Macros”. Apparently this second issue will be fixed in Firebase 4.0.4.