Xcode 16 beta 2: this SDK is not supported by the compiler

Anyone else seeing these error messages trying to build their apps with Xcode 16 beta 2?

…/WithPerceptionTracking.swift:165:12 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.

/Applications/Xcode-16.1.0-Beta.2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.1.sdk/System/Library/Frameworks/Charts.framework/Modules/Charts.swiftmodule/arm64-apple-ios-simulator.swiftinterface:2423:1 Type 'PointMark' does not conform to protocol 'ChartContent'

Usual rituals performed: quit and relaunched Xcode, cleaned target, trashed DerivedData etc. Didn't expect it to work since it looks like the problem is in a module interface.

FB15244412

Steps: using Xcode 16.1 beta 2 (16B5014f)

  1. Create a new project > iOS app target.
  2. Files Navigator > Project > Package Dependencies > Add: https://github.com/pointfreeco/swift-perception to project and to app target.
  3. Build and run.

Builds and runs fine with beta 1.

1 Like

This seems like a bug with the Charts framework specifically. The feedback you have filed will be helpful -- thank you!

2 Likes

This has been resolved in Xcode 16.1 beta 3 (16B5029d). Thank you!

FB15244412