Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Unable to build c++ ios 18.4 headers with xcode 16.3

I have c++ enabled in my project and they build fine in Xcode 16.2. But now iOS SDK c++ files do not compile since “std::char_traits” support has been dropped from compiler during 16.3 update.

This is the error I get: /Developer/SDKs/iPhoneOS18.4.sdk/usr/include/c++/v1/ios:543:64 Implicit instantiation of undefined template 'std::char_traits<unsigned char>'

At least these are broken, maybe more: ios.h basic_ostream.h string.h string_view.h

This is rather annoying that Apple's own header files do not compile. Can't fix it by myself. Also other workarounds than downgrading to 16.2 are welcome.

Feedback assistant: FB17183862

Maybe post a very simple demo file that reproduces the error. All of those headers look like ancient versions with the ".h".

Unable to build c&#43;&#43; ios 18.4 headers with xcode 16.3
 
 
Q