/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h
#include <stdio.h>
# 比如说这里引用了Foundation组件库,一般引入和组件库同名的头文件即可
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
printf("c hello world");
printf("c hello world\n");
NSLog(@"bkhhkjk");
NSLog(@"bkhhkjk");
return 0;
}
例如上面引入的Foundation.h,该头文件又引入了该组件库中的其他头文件,所以我们可以称这个头文件是该工具包头文件的集合✌️,一般我们也称该文件为主头文件。