LoginSignup
6
3

More than 1 year has passed since last update.

pod 'Firebase/Firestore'インストール後のビルドが遅い場合の対処法(iOS)

Last updated at Posted at 2021-08-23

ビルドが遅い

Podfileにpod 'FirebaseFirestore'をインストールしてビルドするとビルド完了に時間がかかります。

対処法

結論

pod 'FirebaseFirestore'

ではなく

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '7.11.0'

とか書けば解決します。

理由

理由はドキュメントに書いてありました。

Why
Currently the Firestore iOS SDK depends on some 500k lines of mostly C++, which when compiling as part of your Xcode build takes a long time - even more so in CI environments.

翻訳すると

現在、Firestore iOS SDKは、ほとんどがC ++の約500k行に依存しています。これは、Xcodeビルドの一部としてコンパイルする場合、長い時間がかかります。CI環境ではさらに時間がかかります。

ということになり、事前にコンパイルした結果を、githubから取得するようにすることで解決しているようです。

お知らせ

現在、iOS開発案件を業務委託で募集中です(副業)。Twitter DMでご依頼をお待ちしています。

6
3
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
6
3