[flutter] No app has been configured yet. 오류 해결 방법
플러터 No app has been configured yet. 오류 해결 방법
플러터 앱에서 파이어베이스 기능을 구현하다가 다음과 같은 오류가 발생했을 때 해결하는 방법에 대해 알아보겠습니다.
[Firebase/Core][I-COR000005] No app has been configured yet.
루트 경로에 위치한 ios/Runner/AppDelegate.swift 파일에 파이어베이스 코드를 추가하면 됩니다. 간단하죠?
AppDelegate.swift
import UIKit
import Flutter
import Firebase // Add Line.
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
FirebaseApp.configure() // Add Line.
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
반응형
'주제 > flutter' 카테고리의 다른 글
[flutter] flutter_localizations 다국어 적용하는 방법 (0) | 2023.03.28 |
---|---|
[flutter] ios splash screen, launch screen 적용하는 방법 (0) | 2023.03.27 |
[flutter] ios에서 구글 로그인 오류 our app is missing support for the following URL schemes 해결 방법 (0) | 2023.03.17 |
[flutter] 파이어베이스 디버그 서명 인증서 SHA1 생성 방법 (0) | 2023.03.17 |
[flutter] 앱의 패키지 이름을 변경하는 방법 (0) | 2023.03.17 |