I have just installed the latest Xcode (13.3.1) and am finding that when I attempt to build a kernel extension (which was compiling fine in 13.2.1) I encounter the following error:
error: use of undeclared identifier '__APPLE_CC__'
This appears to be inside an auto-generated file named
<TargetName>_info.c
, located in ../Intermediates.noindex/<ProjectName>.build/Debug/<TargetName>.build/DerivedSources/
I couldn't see any reference to this change in the release notes for Xcode 13.3 or 13.3.1.
From some reading it appears that __APPLE_CC__
is related to a C compiler version.
Has anyone else encountered this or know whether this is a bug, or part of the deprecation of kernel extensions?
Many thanks