Error: No Firebase App '[DEFAULT]' has been created - call firebase.initializeApp()
ios/{Project_name}/AppDelegate.swift
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
FirebaseApp.configure() // 在這位置加入這行
let delegate = ReactNativeDelegate()
let factory = ExpoReactNativeFactory(delegate: delegate)
delegate.dependencyProvider = RCTAppDependencyProvider()
}
再重新打包dev build
cd ios
rm -rf Pods Podfile.lock
pod install
cd ../
npx expo run:ios