##swiftにfirebaseを導入しようとしています。
アプリ登録と設定ファイルのダウンロードをしました。Udemyに沿っているので、ここに問題はないと思います。
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target '僕のDisDisplay Name' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for 僕のDisDisplay Name pod 'Firebase/Auth' pod 'Firebase/Database' pod 'Firebase/Storage' end
$ pod init $ pod install Analyzing dependencies Downloading dependencies Installing Firebase (5.15.0) Installing FirebaseAuth (5.2.0) Installing FirebaseAuthInterop (1.0.0) Installing FirebaseCore (5.1.10) Installing FirebaseDatabase (5.0.4) Installing FirebaseStorage (3.0.3) Installing GTMSessionFetcher (1.2.1) Installing GoogleUtilities (5.3.7) Installing leveldb-library (1.20) Generating Pods project Integrating client project Sending stats Pod installation complete! There are 3 dependencies from the Podfile and 9 total pods installed. [!] Automatically assigning platform `ios` with version `12.1` on target `僕のプロジェクト名` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
import UIKit import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { window = UIWindow() window?.rootViewController = UINavigationController(rootViewController: LoginVC()) FirebaseApp.configure() return true }
ここまで特にエラーコードは出ないのですが、シュミレーターを開くと、
アプリが白紙のままで、
xcodeには
という画面が出てしまいます。
黄色い三角のところをクリックすると、
Queus: com .apple.main-thread(serial)と出ていました。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー