#security/mac_policy header file not dound in xcode 12.4

Hi Team,

I am using macos 10.15.7 catlina, Xcode installed 12.4, SDK: MacOSX11.1.sdk. Im trying to build my project but getting below error related to mac_policy.h header file. I tried to use SDK MacOSX10.12/10.5 but getting architecture not supported issue.

s/ctuser/workspace/ScanNProtect/RPDriver/driver/build/RPDriver.build/Release/RPDriver.build/Objects-normal/x86_64/DriverMain.o /Users/ctuser/workspace/ScanNProtect/RPDriver/driver/Apple/src/DriverMain.c:9:10: fatal error: 'security/mac_policy.h' file not found #include <security/mac_policy.h> ^~~~~~~~~~~~~~~~~~~~~~~

Please suggest the Xcode/SDK version supporting for this issue.

Ah, this is a mess. The kernel’s MAC framework is not considered KPI. That’s documented in QA1574 Kernel’s MAC framework. However, due to the bug mentioned in that Q&A, the framework’s headers were included in the macOS SDK for many years. We finally fixed that in the macOS 10.13 SDK, so the headers now accurately reflect our KPI policy.

As to what you should do about this, it depends on what this code is doing with the MAC framework. I recommend that you comment out the #include and see what breaks.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

#security/mac_policy header file not dound in xcode 12.4
 
 
Q