
Mach-O 파일에서 Objective-C 헤더를 생성합니다.
class-dump는 Mach-O 파일의 Objective-C 세그먼트를 검사하기 위한 명령줄 유틸리티입니다. 클래스, 카테고리 및 프로토콜에 대한 선언을 생성합니다. 이는 'otool -ov'를 사용하여 제공되는 정보와 동일하지만, 일반적인 Objective-C 선언 형태로 표시됩니다.
최신 버전 및 정보는 다음에서 확인할 수 있습니다:
http://stevenygard.com/projects/class-dump
소스 코드는 제 Github 저장소에서도 확인할 수 있습니다:
https://github.com/nygard/class-dump
class-dump 3.5 (64 bit)
Usage: class-dump [options] <mach-o-file>
where options are:
-a show instance variable offsets
-A show implementation addresses
--arch <arch> choose a specific architecture from a universal binary (ppc, ppc64, i386, x86_64)
-C <regex> only display classes matching regular expression
-f <str> find string in method name
-H generate header files in current directory, or directory specified with -o
-I sort classes, categories, and protocols by inheritance (overrides -s)
-o <dir> output directory used for -H
-r recursively expand frameworks and fixed VM shared libraries
-s sort classes and categories by name
-S sort methods by name
-t suppress header in output, for testing
--list-arches list the arches in the file, then exit
--sdk-ios specify iOS SDK version (will look in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS<version>.sdk
--sdk-mac specify Mac OS X version (will look in /Developer/SDKs/MacOSX<version>.sdk
--sdk-root specify the full SDK root path (or use --sdk-ios/--sdk-mac for a shortcut)
class-dump AppKit:
class-dump /System/Library/Frameworks/AppKit.framework
class-dump UIKit:
class-dump /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework
class-dump UIKit 및 UIKit이 사용하는 모든 프레임워크:
class-dump /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework -r --sdk-ios 4.3
/Developer 대신 /Dev42에 설치된 개발자 도구에서 class-dump UIKit(및 UIKit이 사용하는 모든 프레임워크):
class-dump /Dev42/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/Frameworks/UIKit.framework -r --sdk-root /Dev42/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk
이 파일은 Mach-O 파일의 Objective-C 세그먼트를 검사하는 유틸리티인 class-dump의 일부입니다. Copyright (C) 1997-2019 Steve Nygard.
이 프로그램은 자유 소프트웨어입니다. Free Software Foundation에서 발표한 GNU General Public License 버전 2 또는 (선택에 따라) 이후 버전의 조건에 따라 재배포 및/또는 수정할 수 있습니다.
이 프로그램은 유용하게 사용될 수 있기를 바라는 희망으로 배포되지만, 어떠한 보증도 없이 배포됩니다. 상품성 또는 특정 목적에의 적합성에 대한 묵시적 보증조차 없습니다. 자세한 내용은 GNU General Public License를 참조하십시오.
이 프로그램과 함께 GNU General Public License 사본을 받았을 것입니다. 그렇지 않다면 Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA로 문의하십시오.
저자에게 연락하려면 다음을 사용하십시오: 이메일: nygard at gmail.com