macOS 15.1b5, Xcode 16.1b2, does not compile

macOS project, was compiling on macOS 14, now there are errors when trying to compile it again:

In file macOS 15.1 / usr/include/ ___wctype.h there are errors:

Use of undeclared identifier '_CTYPE_A' in line: return (__istype(_wc, _CTYPE_A|_CTYPE_D));

And further down: Use of undeclared identifier '_CTYPE_A' Use of undeclared identifier '_CTYPE_C' Use of undeclared identifier '_CTYPE_D'

Is this an SDK problem?

I'm seeing a similar issue, and I'm also unable to resolve it. The project compiles using Xcode 15.4 on macOS 14.7, but fails to build on Xcode 16.0 & 16.1 on macOS 15.0 with what appears to be a similar set of errors compiling clang module __wctype.

While building module '__wctype': In file included from <module-includes>:1: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/usr/include/___wctype.h:83:24: error: use of undeclared identifier '_CTYPE_A' 83 | return (__istype(_wc, _CTYPE_A|_CTYPE_D)); | ^ /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/usr/include/___wctype.h:83:33: error: use of undeclared identifier '_CTYPE_D' 83 | return (__istype(_wc, _CTYPE_A|_CTYPE_D)); | ^ /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/usr/include/___wctype.h:89:24: error: use of undeclared identifier '_CTYPE_A' 89 | return (__istype(_wc, _CTYPE_A)); |

....

macOS 15.1b5, Xcode 16.1b2, does not compile
 
 
Q