Xcode build fails

Xcode build fails with below reason, not sure what could be the reason.

Tried all ways

  • Set Xcode 13 as default setting as command line tools
  • Removed derived data and and clean build

Below is the error getting: failed to build module 'Accelerate'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5 (swiftlang-1300.0.17.216 clang-1300.0.18.1)', while this compiler is 'Apple Swift version 5.5 (swiftlang-1300.0.19.104 clang-1300.0.18.4)'). Please select a toolchain which matches the SDK.

Please file a bug report for this using Feedback Assistant, and share the FB number here.

Also have this issue, also failing to find a work around.

Xcode build fails
 
 
Q