The default Firebase app has not yet been configured. Add `[FIRApp configure];` In xamarin forms(iOS)

Raghavendra G R 121 Reputation points
2021-01-18T15:13:01.223+00:00

When i build app for xamarin ios the below issue/warning occurs.

Error:

  1. 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.
  2. [Firebase/Crashlytics] Version 4.6.2

List of plugins attached here.57650-screenshot-2021-01-18-at-84223-pm.png

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,378 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    2021-01-19T07:28:14.94+00:00

    Hello,

    Welcome to Microsoft Q&A!

    As the error shows , you need to add initialization code in didFinishLaunchingWithOptions in AppDelegate.cs .

       FirebaseApp.configure()  
    

    Refer to https://firebase.google.com/docs/ios/setup#swift_1 .

    Thank you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.