Unable to compile SwiftUI Charts on Xcode 16.1 Beta 2

Unable to compile app that imports Swift UI Charts SDK on Xcode Version 16.1 beta 2 (16B5014f) with error:

Failed to build module 'Charts'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.41 clang-1600.0.24.1)', while this compiler is 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.11 clang-1600.0.26.2)'). Please select a toolchain which matches the SDK.

FB15161667

Answered by DTS Engineer in 804203022

@YishaiR Thanks for filling the bug report. This is a known issue for which there is no known workaround at this time.

Please be sure to test on future OS versions including beta/seed releases. Thanks

Same here in a project with multiple sub-projects. Try to fix it by setting to Swift 6, but still no avail.

Accepted Answer

@YishaiR Thanks for filling the bug report. This is a known issue for which there is no known workaround at this time.

Please be sure to test on future OS versions including beta/seed releases. Thanks

Same problem here.

I am also facing this same issue. Hope it is fixed soon!

Thanks everyone! This issue is fixed in Xcode 16.1 beta 3 with the updated SDKs.

Unable to compile SwiftUI Charts on Xcode 16.1 Beta 2
 
 
Q