Home > Back-end >  Why is Firebase Firestore with Swift 5.5 Toolchain generating an error?
Why is Firebase Firestore with Swift 5.5 Toolchain generating an error?

Time:10-13

I am running Xcode 13.0 with the Swift 5.5 toolchain.

When I load the pod 'Firebase/Firestore' and try to build, I get the following error:

Missing '#include <stdlib.h>'; 'abort' must be declared before it is used

A screenshot of the code that is being highlighted below:

Note, that I have stripped this back so that I have zero code in my project - only the default that is provided with a new project.

Screenshot of error and source code from Firebase Library

Note, that I have stripped this back so that I have zero code in my project - only the default that is provided with a new project.

CodePudding user response:

Update to a recent version of Firebase. The issue was fixed in March in https://github.com/firebase/firebase-ios-sdk/issues/7552

  • Related