I\'m building my first iOS application, and I am using Firebase to handle authentication, database, etc. I added a sign up screen and used the following code to create a new
For Swift 4
Had the same problem with crashing. When trying to reference from Firebase with a .plist file.
(This fixed my problem.)
Try writing this outside of or within the viewDidLoad method:
1. var ref: DatabaseReference!
Then reference it within the viewDidLoad method:
2. Database.database().reference()
And now it's:
FirebaseApp.configure()
Instead.