0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SwiftでFirebaseAppの「Use of unresolved identifier 'FirebaseApp'」が消えない....

Posted at

はじめに

SwiftでFirebase使って、アプリを作っているのですが、最初問題なくビルドできていたのに、途中から、「Use of unresolved identifier 'FirebaseApp'」エラーが出始めて、エラーが表示されるけどビルドは通るのだが、何度もビルドしていると、そのうち、ビルドすら通らなくなったので、調べて解決できたので...

更新履歴

2020.8.14 初回投稿

環境

  • macOS Catalina(10.15.5)
  • Swift5.2.4
  • Xcode11.6

現象

1.PodsでFirebaseインストール後、アプリ開発途中ビルドすると「Use of unresolved identifier 'FirebaseApp'」エラー発生。しかし、ビルドは通る

2.何度かビルドを繰り返すと、ビルドが通らなくなる。

試したこと

1.↓を参考にpod updateなどを試みる
https://qiita.com/cusa/items/e0a7b6f2a87f99e00cd8
しかし、ある日これを試してもダメになってしまった。

2.さらに調べて、↓を参考に、import FirebaseCoreを追加してみる
https://tomolog.reafo.io/jp/article/error-firebaseapp-unresolvedidentifier-ga-kienaitoki

あっさりエラー消えた....

結論

ちゃんとFirebaseインストールしてうまくビルドできていたのに、ある日急に、「Use of unresolved identifier 'FirebaseApp'」のエラーが出たら、「import FirebaseCore」をApp Delegateに追加してみる。
というか、最初から追加しておく。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?