文章目录
引言
使用框架的时候可以发现,SDK 被分为两部分: Frameworks 和 usr/include
。
Frameworks 顾名思义为我们常常import<> 的库,而 usr/include
是什么?好像主要由C语言文件构成。
地址
查看步骤:
1、command+左键 选中一个类;
2、点击 jump to definition
进入头文件;
3、右键点击文件,选中 show in finder
,即可查看这个文件的地址。
可以发现,
usr/include
地址:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
Frameworks 地址:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
关于 ../System/Library
与 Frameworks 平行的文件夹还有另外四个,但都没有列入到xcode 中展示。
其中 PrivateFrameworks 指 私有 API 的frameworks。
Printers 中没有数据;
参考
-
iOS_系统所有Frameworks & usr/include概览
https://www.jianshu.com/p/6d371e7fb627 -
private framework使用
https://blog.51cto.com/chenjohney/1288551 -
iOS 私有API的使用
https://www.jianshu.com/p/c3dc77924a25