XCode 14: 'AVFoundation' SDK is not supported by the compiler

Hello

My XCode was automatically updated to the version 14.0 and now I can't seem to build my app in any way. I've cleaned every cache possible, I've deleted everything and started clean. I've tried basically everything.

To describe my app: It's a main app with a ShareExtension (simply this), built UIKit and SwiftUI.

The full error is the following:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/usr/lib/swift/AVFoundation.swiftmodule/arm64-apple-ios.swiftinterface:1:1: error build: Failed to build module 'AVFoundation'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7 (swiftlang-5.7.0.121.3 clang-1400.0.29)', while this compiler is 'Apple Swift version 5.7 (swiftlang-5.7.0.122.7 clang-1400.0.29)'). Please select a toolchain which matches the SDK.

I can't move away from this. Is XCode shipping with outdated binaries?

Thank you