LoginSignup
0
0

【Firebase エラー】「Users does not have permission to access」

Last updated at Posted at 2023-06-02

事象

Firebaseを使ったiPhoneアプリ開発で以下の画像のようにビルド時に

「Users does not have permission to access」

といったエラーと遭遇しました。

image.png

原因

以下の画像のようにFirebaseのStorageのRuleの設定で
「read」のみ「allow」に設定していたのが原因でした。

この状態だとユーザーは「読む」ことができても
アプリ内にデータを「書き」込んで保存することができないからです。

スクリーンショット 2023-06-02 18.33.22.png

解決方法

以下の画像のように「Firebase」の「Storage」の「Rule」の設定で
「read」だけでなく「write」も「allow」に設定します。

こうすることで、ユーザーは「読む」だけでなく
アプリ内にデータを「書き」込んで保存することができます。

スクリーンショット 2023-06-02 18.13.49.png

参考文献

[Swift]FireBaseのStorageで「User does not have permission to access」というエラーが出る
https://teratail.com/questions/365436

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