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

前端 未结 3 586
日久生厌
日久生厌 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:01

    You are missing .storage().

    Check your line. It should be:

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

    Hope it helps

提交回复
热议问题