質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Firebase

Firebaseは、Googleが提供するBasSサービスの一つ。リアルタイム通知可能、並びにアクセス制御ができるオブジェクトデータベース機能を備えます。さらに認証機能、アプリケーションのログ解析機能などの利用も可能です。

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

Q&A

解決済

1回答

517閲覧

Firebaseを入れてビルドすると、Thread 1: signal SIGABRTというエラーが出る。

amazon_106

総合スコア50

Firebase

Firebaseは、Googleが提供するBasSサービスの一つ。リアルタイム通知可能、並びにアクセス制御ができるオブジェクトデータベース機能を備えます。さらに認証機能、アプリケーションのログ解析機能などの利用も可能です。

Xcode

Xcodeはソフトウェア開発のための、Appleの統合開発環境です。Mac OSXに付随するかたちで配布されています。

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

0グッド

0クリップ

投稿2019/01/20 02:06

編集2019/01/20 02:08

##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)と出ていました。
よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

fathy

2019/01/20 08:27

右下の画面のログの"reason"を探してください。"reason"以下に理由が表示されるので、そちらを追記お願いします。
amazon_106

2019/01/20 11:07

xcodeにそんな機能があったんですね。探してきます!
amazon_106

2019/01/20 18:42

自己解決しました! 便利機能をこのタイミングで知れたのはよかったです! ありがとうございました!
guest

回答1

0

自己解決

Podfileの中に

pod 'Firebase/Firestore'

を追加し、ターミナルの今作ってるアプリから

pod install

で、Finder上でアプリケーションを開き、
そこの一個下の階層内にあるInstagram.xcworkspaceをクリックで開く。

これでエラーが消えました。

投稿2019/01/20 18:46

amazon_106

総合スコア50

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問