Firebase causing "Thread 1: signal SIGABRT"

Let's try a test.

Create a new project following the instructions on the Firebase website, ensuring you add the GoogleService-Info.plist to your project.

At the step where you create a pod file, make sure you are in your projects folder and use this text:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'your-project-name' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Firesearch
  pod ‘Firebase/Core’
end

and put your project name in place of your-project-name

Save the file and then do a

pod install

Then open the project-name.xcworkspace and build it.


Worked for Xcode 9

If none of solutions worked for you try this:

  1. Close Xcode
  2. In Finder:

    • Remove .xcworkspace file
    • Remove Podfile.lock file
    • Remove Pods folder
  3. In Terminal (in project folder): pod install

  4. Make sure that GoogleService-Info.plist is added to your target and generated for your BUNDLE_ID.

For unknown reasons when you use both "Firebase/Admob" and "Firebase/Core" pods Xcode can mess up the workspace and produce a bad build that will crash at runtime if you try to call FirebaseApp.configure() or GADMobileAds.configure(withApplicationID: "APP_ID")