EXC_BAD_ACCESS code=2 on including Firebase/Auth in Podfile
There appears to be a problem in the latest Firebase/Core (3.8.0) release. Even @IBDesignable
was crashing with a recursive call to the method signature you mentioned.
You have a couple of options:
- In Info.plist (app), set
FirebaseAutomaticScreenReportingEnabled
to NO (bool). This solved the problem for my running application, but IBDesignable resources caused this error on build:
file:///path/to/project/Base.lproj/Main.storyboard: error: IB Designables: Failed to render and update auto layout status for UIViewController (svZ-78-1Mn): The agent crashed
You may want to temporarily downgrade to 3.7.1, for example,
pod 'Firebase/Core', '~> 3.7.1' pod 'Firebase/Auth' pod 'Firebase/Database'
The rest of the dependencies should take care of themselves when you run pod update
.
I made a silly mistake. Never turned on Google under Authentication -> Sign in methods on Firebase