The framework I had to temper with is IOKit, for it didn't include header files by default:
darwin/Platform.c:30:10: fatal error: 'IOKit/IOKitLib.h' file not found
30 | #include <IOKit/IOKitLib.h>
| ^~~~~~~~~~~~~~~~~~
darwin/Platform.c:30:10: note: did not find header 'IOKitLib.h' in framework 'IOKit' (loaded from '/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks')
9 errors generated.