A workaround, if you have Firebase 9.x, is removing "ABSL_CONST_INIT " in that line of code. Modify that line to:
extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited = Settings::CacheSizeUnlimited;
Save the file and build again