Skip to content

Commit 7f3ff37

Browse files
authored
Merge pull request nygard#1 from manicmaniac/add-install-instruction
Update README
2 parents b12a9cc + 50355fc commit 7f3ff37

File tree

2 files changed

+26
-21
lines changed

2 files changed

+26
-21
lines changed

README.md

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,38 @@ segment of Mach-O files. It generates declarations for the classes,
66
categories and protocols. This is the same information provided by
77
using 'otool -ov', but presented as normal Objective-C declarations.
88

9-
The latest version and information is available at:
9+
This is the unstable fork from https://github.com/nygard/class-dump.
1010

11-
http://stevenygard.com/projects/class-dump
11+
The original version and information is available at:
1212

13-
The source code is also available from my Github repository at:
13+
http://stevenygard.com/projects/class-dump
1414

15-
https://github.com/nygard/class-dump
16-
17-
"Swift support"
18-
==========
15+
Swift support
16+
-------------
1917

20-
I added "Swift support" for class-dump.
18+
This version includes "Swift support" for class-dump.
2119

22-
Now, this tool can dump Objective-C headers even the MachO file uses Swift and ObjC at the same time.
23-
Notice, only ObjC headers can be dumped!
20+
Now, this tool can dump Objective-C headers even the Mach-O file uses Swift and Objective-C at the same time.
21+
Notice, only Objective-C headers can be dumped!
2422

2523
LAST, THIS IS AN EXPERIMENTAL VERSION.
2624

27-
我为class-dump添加了"Swift支持"。
25+
Install
26+
-------
27+
28+
You can install class-dump via Homebrew.
29+
30+
brew install manicmaniac/tap/class-dump
2831

29-
现在,这个工具可以dump出可执行文件的Objective-C头文件,即使那个MachO文件同时使用了Swift和ObjC。请注意只有ObjC类的头文件可以被dump出来!
32+
Or you can build it manually.
3033

31-
最后,这只是一个试验版本。
34+
xcodebuild build -project class-dump.xcodeproj -target class-dump -configuration Release
35+
mv build/Release/class-dump /usr/local/bin/class-dump
3236

3337
Usage
3438
-----
3539

36-
class-dump 3.5 (64 bit)
40+
class-dump 3.5-0.1.0 (64 bit)
3741
Usage: class-dump [options] <mach-o-file>
3842

3943
where options are:
@@ -70,6 +74,13 @@ Usage
7074

7175
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
7276

77+
Versioning rule
78+
---------------
79+
80+
To distinguish this forked version from original one, I added version suffix after the original version string.
81+
This suffix itself follows semantic versioning.
82+
83+
For example, `3.5-0.1.0` means the original version is `3.5` and I added minor changes to it (`0.1.0`).
7384

7485
License
7586
-------
@@ -91,9 +102,3 @@ GNU General Public License for more details.
91102
You should have received a copy of the GNU General Public License
92103
along with this program; if not, write to the Free Software
93104
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
94-
95-
Contact
96-
-------
97-
98-
You may contact the author by:
99-
e-mail: nygard at gmail.com

Source/CDClassDump.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#import "CDFile.h" // For CDArch
77

8-
#define CLASS_DUMP_BASE_VERSION "3.5 (64 bit) (forked by @manicmaniac)"
8+
#define CLASS_DUMP_BASE_VERSION "3.5-0.1.0 (64 bit) (forked by @manicmaniac)"
99

1010
#ifdef DEBUG
1111
#define CLASS_DUMP_VERSION CLASS_DUMP_BASE_VERSION " (Debug version compiled " __DATE__ " " __TIME__ ")"

0 commit comments

Comments
 (0)