sj-dev
sj-dev

Reputation:

Class-Dump Installation

So this may sound like a really stupid question and I HAVE looked at the how-to from the parent website, but no matter what I do, I cannot get this program to even start to install...

I tried entering: cd /opt/local/bin/portslocation/dports/class-dump

which returned a "this file/director doesnt exist" error, so i tried to get to it folder by folder. when i got all the way to: cd /opt/local/bin/ i cannot go any further. when i check the contents of the bin directory, the only files i can find are (and i cannot access these apparently either): "daemondo port portf portindex portmirror" i have tried doing this on 2 computers so far to no avail, macports is installed on both like the website said and i am having trouble finding any support for it. please and thank you!!

Upvotes: 3

Views: 7541

Answers (3)

Clay Bridges
Clay Bridges

Reputation: 11880

Unless you're trying to develop it, why screw around? Use homebrew. As of today, and modulo a sudo here or there, you can install homebrew with

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

If this doesn't work for you, check the command line at the top of the page on homebrew.†

After this, install class-dump with

brew install class-dump

Done.


† Ping me in the comments with "command line update needed", and I'll try to keep this in sync. :)

Upvotes: 7

Paul Morris
Paul Morris

Reputation: 1773

I had issues with this for hours, but it is actually quite simple.

I downloaded the class-dump 3.3 version from CodeTheCode, Unzipped the file and copied the class-dump file to a directory. In my case the directory was /opt/theos/bin.

In terminal, I then CD to that directory using cd /opt/theos/bin To run the class dump command line utility it is as simple as this;

./class-dump 

Obviously you then need to give it it's arguments, so in my case I was using it do dump the iOS headers from the frameworks, so I used;

./class-dump -H   /Developer/Library/iPhoneSimulator4.3.sdk/Frameworks/UIKit.framework/UIKit -o ~/Desktop/UIKit

Obviously I am not sure what you are using it for, but in the example above I am telling class-dump to dump header files from the directory given, and output them to /Desktop/UIKit.

The theory is carried throughout.

Upvotes: 5

diederikh
diederikh

Reputation: 25281

Have you tried getting the binary from http://www.codethecode.com/projects/class-dump/?

Upvotes: 1

Related Questions