Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(Swift) 'use of unresolved identifier 'FIRStorage'

I am using firebase and I have the following line of code:

let storageRef = FIRStorage.storage().reference()

which gives me the error 'use of unresolved identifier 'FIRStorage'.

These are my imports in my file:

import UIKit
import Firebase

In the video tutorial I am following the person in the video only has these two imports and gets no error. 'FIRStorage' also seems to be an actual class in the Firebase documentation. Is there an import I am missing? Is there something wrong with my frameworks or podfile?

Here are my pods:

enter image description here

Any help is greatly appreciated!

like image 261
evanhaus Avatar asked Jul 25 '16 06:07

evanhaus


2 Answers

You need install FirebaseStorage to use it

Follow this instruction: https://firebase.google.com/docs/storage/ios/start

like image 145
Hieu Dinh Avatar answered Nov 19 '22 01:11

Hieu Dinh


You need to the following steps:

  1. import FirebaseStorage
  2. FIRStorage has been renamed to Storage

Hopefully you find it helpful.

like image 3
Mahyar Avatar answered Nov 18 '22 23:11

Mahyar