DriverKit XCode compilation errors

I'm working on dext project (c++), Base SDK and Supported Platforms are set to DriverKit. #include <iostream> causes errors:

error "The iostreams library is not supported since libc++ has been configured without support for localization." error "<locale.h> is not supported since libc++ has been configured without support for localization."

Also it's not possible to define custom log object: undeclared identifier 'os_log_create'. <os/log.h> included and os_log function is compiled correct. macOS as additional SDK did not help. Thanks a lot for any hint.

I know this is an old post, but this should clear things up. Maybe it will help somebody.

When developing a driver with DriverKit you're essentially developing for a separate platform. Apple greatly restricts what is available. Sometimes it is surprising what isn't available, such as libkern/IOKit objects/methods/functions of the OSObject hierarchy, and especially os_log_create.

In any case what's available can found at

$(xcode-select -p)/Platforms/DriverKit.platform/Developer/SDKs/DriverKit.sdk/System/DriverKit/System/Library/Frameworks

and at

$(xcode-select -p)/Platforms/DriverKit.platform/Developer/SDKs/DriverKit.sdk/System/DriverKit/usr/include
DriverKit XCode compilation errors
 
 
Q