Errors using Swift on Fedora 43

I ended up using distrobox to get an Ubuntu container on my machine and I am able to run Swift code in that. The situation is not ideal but at least I can actually run my code now.