4
2

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 5 years have passed since last update.

【iOS】Firestoreを使ったアプリのPRODUCT_NAMEを日本語にすると落ちる

Posted at

問題

Firestoreを使ったアプリで、今まで開発プロジェクト名を英語名称で進めていたのですが、リリースに向けてアプリの表示名を日本語名称にするため、Xcode>TARGETS>General>Identity>Display Nameで日本語名称に変更したところ、突如アプリが落ちるようになりました。

原因

どうやらPRODUCT_NAMEが日本語になっていると落ちてしまうようです。
参考:https://stackoverflow.com/questions/58155123/ios-swift-firebase-firestore-crashed-at-nsbundle-bundlewithidentifier-org-coc

解決方法

Display Nameから直接変更するのではなく、Info.plistでBundle display nameのキーを追加してアプリの表示名を指定することで回避できるようになりました。

Info.plistには最初からBundle nameというキーで$PRODUCT_NAMEが指定されています。
初めの方法でアプリ表示名を変更すると、この$PRODUCT_NAMEがそちらに書き換えられるのでしょうか...?

4
2
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?