I recently installed Xcode 26 (build 17A324) on macOS and when I try to build my iOS project I get this error:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/usr/lib/swift/AssetsLibrary.swiftmodule/arm64e-apple-ios.swiftinterface:1:1:
failed to build module ‘AssetsLibrary’; this SDK is not supported by the compiler (the SDK is built with ‘Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.17.14 clang-1700.3.17.1)’,
while this compiler is ‘Apple Swift version 6.2 effective-5.10 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)’).
The strange thing is that I am not using ALAssetsLibrary anywhere in my project code (I know it has been deprecated for years). Still, the compiler seems to try and import it from the iOS 26 SDK, which then fails because of a mismatch between the SDK and the compiler toolchain.
I have already tried cleaning Derived Data, switching to the default toolchain in Xcode, and fixing the SDK symlink (iPhoneOS26.0.sdk -> iPhoneOS.sdk). None of these worked.