0

this is my error

Thread 1: "FirebaseApp.configure() could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/."

this is my code

import SwiftUI
import Firebase


@main
struct Tour__20_Twitter_cloneApp: App {
  @StateObject var viewModel  = AuthViewModel()
    init() {
        FirebaseApp.configure()
    }
    
    
    
    var body: some Scene {
        WindowGroup {
            NavigationView  {
              ContentView()
            }
            .environmentObject(viewModel)
        }
    }
}

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • 1
    Have you downloaded a GoogleService-Info.plist from https://console.firebase.google.com ? – Tanner Nov 17 '22 at 14:05
  • The error message is pretty explicit. Did you follow step 3 from this documentation on adding the Firebase config file to you app? https://firebase.google.com/docs/ios/setup#add-config-file I linked a few questions where this was covered before, but you can find more when you [search for the error message](https://www.google.com/search?q=FirebaseApp.configure()+could+not+find+a+valid+GoogleService-Info.plist+in+your+project). – Frank van Puffelen Nov 17 '22 at 15:12

0 Answers0