xcode16.1beta compile error

SDK has some compile errors, when it can be fixed? We want to develop iOS 18 new features in our application.

  1. /Users/***/XcodeBeta/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk/usr/include/c++/v1/__type_traits/is_arithmetic.h:24:29 'std::is_arithmetic<float>' has different definitions in different modules; defined here

  2. /Users/***/XcodeBeta/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk/usr/include/c++/v1/__type_traits/is_integral.h:53:29 'std::is_integral<double>' has different definitions in different modules; defined here

I'm experiencing the same fatal compile error with iOS 18 RC and Xcode 16 RC:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk/usr/include/c++/v1/__type_traits/is_integral.h:53:29 'std::is_integral<double>' has different definitions in different modules; definition in module 'std_private_type_traits_is_integral' is here

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/usr/include/c++/v1/__type_traits/is_integral.h:53:29 'std::is_integral<double>' has different definitions in different modules; definition in module 'std_private_type_traits_is_integral' is here

I don't know how to resolve this since the issue involves the is_integral.h file which is part of the Foundation include. This appears to be an Xcode 16 bug.

Meanwhile, I found a solution to run Xcode 15 on Sequoia.

Update: I was finally able to fix this issue by changing the project's Build Settings > Apple Clang Language C++ > C++ Language Dialect to "GNU++23" (from "Compiler Default").

xcode16.1beta compile error
 
 
Q