1. 下载 class-dump
2. 将下载的文件copy到 /usr/bin下
3.执行以下操作
class-dump -H /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard -o ~/Desktop/SpringBoard
这样,头文件信息已经放到当前用户的桌面上了