Firebase: Provided bucket does not match the Storage bucket of the current instance in Swift

前端 未结 3 560
日久生厌
日久生厌 2021-01-13 17:36

I have the following code:

let storageRef = FIRStorage().reference(forURL: \"gs://slugbug-....appspot.com\") // dots intentional
let imageRef = storageRef.ch         


        
3条回答
  •  心在旅途
    2021-01-13 18:07

    I figured out the solution:

    I changed the code from:

    let storageRef = FIRStorage().reference(forURL: "gs://slugbug-....appspot.com")
    

    to:

    let storageRef = FIRStorage.storage().reference(forURL: "gs://slugbug-....appspot.com")
    

    ... a very subtle but annoying bug

提交回复
热议问题