Oh wow. I managed to solve it. I removed my Cocoapods integration which I used for Firebase. After that I reintegrated Firebase using the Xcode package manager.
This is what solved it for me:
Close Xcode, terminal navigate to your Xcode Project directory
brew install cocoapods-deintegrate cocoapods-clean
pod deintegrate
pod clean
rm Podfile
Open Xcode, 'add packages'
Add Firebase to build target
GOGOGOGOGO ;)
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: