Firebase swift error Storage.storage() cannot find 'Storage' in scope

Viewed 2771

Hi when trying to upload an image to firebase storage I am using the firebase documentation however I am getting this error.

cannot find 'Storage' in scope

 let storage = Storage.storage()
 let storageReference = storage.reference()
1 Answers

Add next line to your pod file

pod 'Firebase/Storage'

then "pod install" and finally add

import FirebaseStorage

Related