Xcode 15.3 - 'std::is_integral<double>' has different definitions in different modules

With the latest release of Xcode, my obj c++ project is now giving compile errors like this.

No code has changed. Reverting to Xcode 15.2 solves this

Did you ever get this resolved?

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 as my app builds without errors using Xcode 15.4 (on a Mac running Sonoma instead of Sequoia).

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").

Xcode 15.3 - 'std::is_integral&lt;double&gt;' has different definitions in different modules
 
 
Q