To fix this temporarily until CocoaPods was update, you can replace DT_TOOLCHAIN_DIR with TOOLCHAIN_DIR in the Firebase related files with the .xcconfig extension, this worked for me
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: