class-dump-swift icon indicating copy to clipboard operation
class-dump-swift copied to clipboard

swift-dump : command not found

Open iOS-Nishant opened this issue 8 years ago • 2 comments

Hi Max, I tried running $ swift-dump myTest.app -o dumpDir , but got command not found.

I could not find any swift-dump binary after make. So I copied the swiftd binary into /usr/local/bin . Then I tried running $ swiftd myTest.app -o dumpDir and got following error

error terminal

When I went to given error address in my system, I found the same error detail in line 253 of file (See above and following image for details). error file

Am I missing something here?

iOS-Nishant avatar Jan 31 '17 07:01 iOS-Nishant

I tried running $ swift-dump myTest.app -o dumpDir , but got command not found.

You run this on a binary, not on a .app. swiftd myTest.app/binary -o dumpDir.

The output binary is swiftd, not swift-dump. The error you are getting has to do with the fact that youre providing a directory to swiftd and not a mach-o binary.

mxms0 avatar Jan 31 '17 09:01 mxms0

@iOS-Nishant : .app is container. actual binary is in .app

alokc83 avatar Sep 05 '18 16:09 alokc83