文章目录

1.去nygard/class-dump下载工程,运行之后获得class-dump,把它放到”/usr/bin”文件夹里,如果放不进去放到”/user/local/bin”文件夹下,然后双击运行,如果报错再输入chmod 777 class-dump
2.去shuhongwu/HackSpringDemo下载DumpFramework.pl放在任意目录下,打开DumpFramework.pl 修改以下地址

1
2
3
4
dump_frameworks('/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks',
'Frameworks');
dump_frameworks('/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/PrivateFrameworks',
'PrivateFrameworks');

在终端执行cd 到DumpFrameworks.pl的路径并执行./DumpFrameworks.pl
如果没有问题所有需要的头文件都已经导入到”/user/headr”中若果找不到header直接全局搜header文件夹

文章目录