firebase - Swift classes added after pods installed do not register modules -
i'm making in app involves firebase, , when add firebase project, pre-existing classes work fine. however, after adding firebase, whenever create new swift class (such new uiviewcontroller class) , import firebase modules in it:
import uikit import firebase //works in files created before pods installed... //...but not files created after class newviewcontroller: uiviewcontroller { override func viewdidload() { super.viewdidload() // additional setup after loading view. } override func didreceivememorywarning() { super.didreceivememorywarning() // dispose of resources can recreated. } }
the import statement throws "no such module firebase". classes added before still register import though. doing wrong, , how can fix this?
try this.
- clean derived data.
- do fresh
pod install
- do clean build , build(cmd+b)
- now add import statement in class -
import firebase
, should start working.
wiki
Comments
Post a Comment