LibcOverlayShims.h compile error

I'm getting this error trying to compile my framework, which I newly added some Swift code to:

<module-includes>:1:9: note: in file included from <module-includes>:1:

#import "LibcOverlayShims.h"

        ^

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/swift/shims/LibcOverlayShims.h:80:15: error: declaration of 'sem_t' must be imported from module 'Darwin.sys.semaphore' before it is required

static inline sem_t *_stdlib_sem_open2(const char *name, int oflag) {

              ^

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/semaphore.h:43:13: note: declaration here is not visible

typedef int sem_t;

            ^

<unknown>:0: error: could not build Objective-C module 'SwiftOverlayShims'
LibcOverlayShims.h compile error
 
 
Q