0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MacOSアプリでFirebase Realtime Database接続エラーの解決法

Posted at

背景

macOSアプリでFirebase Realtime Databaseを使用する際、「指定されたホスト名のサーバが見つかりませんでした」エラーが発生。

原因

MacOSのApp Sandboxによるネットワークアクセスが制限されている。

解決方法

プロジェクトのアプリ名.entitlementsファイルに以下を追加:

<key>com.apple.security.network.client</key>
<true/>

これでRealtime Databaseへの接続・データ保存が可能となる。
iOSアプリでは不要だが、MacOSアプリでは設定必要。

アプリ名.entitlementsファイルのソースコードで表示方法

右クリック > Open As > Source Code

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?