Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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()
like image 573
Karl Mcgeough Avatar asked Jan 24 '23 16:01

Karl Mcgeough


1 Answers

Add next line to your pod file

pod 'Firebase/Storage'

then "pod install" and finally add

import FirebaseStorage

like image 157
Andrew Adamovitch Avatar answered May 16 '23 09:05

Andrew Adamovitch