终端使用小程

Last login: Wed May 25 09:23:04 on consolewdeiMac:~ winni$ wdeiMac:~ winni$ wdeiMac:~ winni$ wdeiMac:~ winni$ lsDesktopDownloadsMoviesPicturesDocumentsLibraryMusicPublicwdeiMac:~ winni$ find /Applications/Xcode.app -name symbolicatecrash -type f ^CwdeiMac:~ winni$ lsDesktopDownloadsMoviesPicturesDocumentsLibraryMusicPublicwdeiMac:~ winni$ find /Applications/Xcode.app -name symbolicatecrash -type f/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrashwdeiMac:~ winni$ cd /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash-bash: cd: /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash: Not a directorywdeiMac:~ winni$ lsDesktopDownloadsMoviesPicturesDocumentsLibraryMusicPublicwdeiMac:~ winni$ lsDesktopDownloadsMoviesPicturesDocumentsLibraryMusicPublicwdeiMac:~ winni$ cd /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash-bash: cd: /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash: Not a directorywdeiMac:~ winni$ /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/-bash: /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/: is a directorywdeiMac:~ winni$ lsDesktopDownloadsMoviesPicturesDocumentsLibraryMusicPublicwdeiMac:~ winni$ cd /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/wdeiMac:Resources winni$ lsARMAsm.xclangspecNQC.xclangspecAda.xclangspecObjectiveC++.xclangspecAppleScript.xclangspecObjectiveC.xclangspecAssets.carOpenCL.xclangspecBaseSupport.xclangspecPHP.xclangspecBuilt-in Syntax Types.xcsynspecPPCAsm.xclangspecC++.xclangspecPascal.xclangspecC.xclangspecPerl.xclangspecCSS.xclangspecPython.xclangspecDTrace.xclangspecRez.xclangspecDVTDiffContextDefaults.plistRuby.xclangspecDVTFoundation.xcplugindataTextBasedDylibSource.xclangspecDeveloperPortalModel.momdXML.xclangspecDylan.xclangspeccsh.xclangspecEnglish.lprojhtml.xclangspecFortran.xclangspecllvm.xclangspecGLSL.xclangspecman.xclangspecInfo.plistplist.xclangspecIntelAsm.xclangspecregex.xclangspecInterfacer.xclangspecsh.xclangspecJam.xclangspecsymbolicatecrashJava.xclangspecversion.plistJavaScript.xclangspecxcconfig.xclangspecMake.xclangspecxclangspec.xclangspecMarkdown.xclangspecxcsynspec.xclangspecMetal.xclangspecxctxtmacro.xclangspecModuleMap.xclangspecwdeiMac:Resources winni$ find symbolicatecrashsymbolicatecrashwdeiMac:Resources winni$ cp symbolicatecrash /Users/winni/Desktop/crashwdeiMac:Resources winni$ lsARMAsm.xclangspecNQC.xclangspecAda.xclangspecObjectiveC++.xclangspecAppleScript.xclangspecObjectiveC.xclangspecAssets.carOpenCL.xclangspecBaseSupport.xclangspecPHP.xclangspecBuilt-in Syntax Types.xcsynspecPPCAsm.xclangspecC++.xclangspecPascal.xclangspecC.xclangspecPerl.xclangspecCSS.xclangspecPython.xclangspecDTrace.xclangspecRez.xclangspecDVTDiffContextDefaults.plistRuby.xclangspecDVTFoundation.xcplugindataTextBasedDylibSource.xclangspecDeveloperPortalModel.momdXML.xclangspecDylan.xclangspeccsh.xclangspecEnglish.lprojhtml.xclangspecFortran.xclangspecllvm.xclangspecGLSL.xclangspecman.xclangspecInfo.plistplist.xclangspecIntelAsm.xclangspecregex.xclangspecInterfacer.xclangspecsh.xclangspecJam.xclangspecsymbolicatecrashJava.xclangspecversion.plistJavaScript.xclangspecxcconfig.xclangspecMake.xclangspecxclangspec.xclangspecMarkdown.xclangspecxcsynspec.xclangspecMetal.xclangspecxctxtmacro.xclangspecModuleMap.xclangspecwdeiMac:Resources winni$ cd /Users/winni/Desktop/crashwdeiMac:crash winni$ lssymbolicatecrashwdeiMac:crash winni$ symbolicatecrash -help-bash: symbolicatecrash: command not foundwdeiMac:crash winni$ symbolicatecrash -h-bash: symbolicatecrash: command not foundwdeiMac:crash winni$ symbolicatecrash help-bash: symbolicatecrash: command not foundwdeiMac:crash winni$ symbolicatecrash-bash: symbolicatecrash: command not foundwdeiMac:crash winni$ lssymbolicatecrashwdeiMac:crash winni$ export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer" wdeiMac:crash winni$ symbolicatecrash-bash: symbolicatecrash: command not foundwdeiMac:crash winni$ ls -hsymbolicatecrashwdeiMac:crash winni$ lssymbolicatecrashwdeiMac:crash winni$ ls helpls: help: No such file or directorywdeiMac:crash winni$ symbolicatecrash -bash: symbolicatecrash: command not foundwdeiMac:crash winni$ lssymbolicatecrashwdeiMac:crash winni$ symbolicatecrash -version-bash: symbolicatecrash: command not foundwdeiMac:crash winni$ symbolicatecrash -version-bash: symbolicatecrash: command not foundwdeiMac:crash winni$ data-bash: data: command not foundwdeiMac:crash winni$ date2016年 5月25日 星期三 10时29分13秒 HKTwdeiMac:crash winni$ cal    五月 2016日 一 二 三 四 五 六 1  2  3  4  5  6  7 8  9 10 11 12 13 1415 16 17 18 19 20 2122 23 24 25 26 27 2829 30 31wdeiMac:crash winni$ ./symbolicatecrash -husage:    ./symbolicatecrash [--help] [--dsym=DSYM] [--output OUTPUT_FILE][SYMBOL_PATH ...]The crash log to be symbolicated. If "-", then the log will be read from stdinAdditional search paths in which to search for symbol rich binaries    -o | --outputThe symbolicated log will be written to OUTPUT_FILE. Defaults to "-" (i.e. stdout) if not specified    -d | --dsymAdds additional dSYM that will be consulted if and when a binary's UUID matches (may be specified more than once)    -h | --help                Display this help message    -v | --verbose              Enables additional outputwdeiMac:crash winni$ ./symbolicatecrash --helpusage:    ./symbolicatecrash [--help] [--dsym=DSYM] [--output OUTPUT_FILE][SYMBOL_PATH ...]The crash log to be symbolicated. If "-", then the log will be read from stdinAdditional search paths in which to search for symbol rich binaries    -o | --outputThe symbolicated log will be written to OUTPUT_FILE. Defaults to "-" (i.e. stdout) if not specified    -d | --dsymAdds additional dSYM that will be consulted if and when a binary's UUID matches (may be specified more than once)

-h | --help                Display this help message

-v | --verbose              Enables additional output

wdeiMac:crash winni$ ./Symbolicatecrash QiNiu.crash dSYMs > winni_output_first.crash

wdeiMac:crash winni$ ./Symbolicatecrash QiNiu2.crash dSYMs >winni_output_two.crash

wdeiMac:crash winni$

wdeiMac:crash winni$

wdeiMac:crash winni$ dwarfdump —uuid QiNiu.app/QiNiu

error: unable to open '—uuid': No such file or directory

wdeiMac:crash winni$ ls

QiNiu.app dSYMs winni_output_two.crash

QiNiu.crash symbolicatecrash

QiNiu2.crash winni_output_first.crash

wdeiMac:crash winni$ dwarfdump

NAME

dwarfdump -- dump DWARF debug information.

SYNOPSIS

dwarfdump [options] file1 file2 ...

DESCRIPTION

For each operand that names a mach-o or 32 bit ELF file, dwarfdump

disassembles the DWARF data found within the file. Only the .debug_info

section is disassembled unless one of the --debug-XXXX or --all options

are specified.

The following options are available:

-a, --all

Dump disassembly of all DWARF sections -- by default only the

.debug_info section is disassembled, or individual sections can be

specified by using the --debug-XXXX options.

--arch=ARCH

Dump DWARF debug information for the specified CPU architecture.

Architectures may be specified by name or by number.  This option

can be specified multiple times, once for each desired

architecture. All architectures will be disassembled by default.

-c, --show-children

Show a DIE's children when using the --debug-info=OFFSET, --find,

and --name options.

--eh-frame[=SECTION]

Dump exception handling frame information from the optional SECTION

parameter. The __eh_frame section will be dumped by default.

-e, --english

Print dwarf tags and attributes in a more readable format instead

of using the DWARF TAG_ and AT_ definitions.

--file-stats[=size]

Show file composition statistics for any input files. Each file's

contents are analyzed and broken down into byte counts for the

following categories: symbol table, string table, text and code,

DWARF debug information, STABS debug information, and other. When

multiple files are specified, byte count totals for each category

will be displayed at the end of the table.  Specify the optional

'size' argument to show all byte count results using unit suffixes:

Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte. This

option can be useful in tracking the size and makeup of mach-o

binary files, and also allows easy comparison between DWARF and

STABS built binaries and related object files.

-f PATTERN, --find=PATTERN

Search for the exact text PATTERN in the .debug_pubnames section

and print the matching debug information entries. Use the --regex

option to have PATTERN become a regular expression for more

flexible pattern matching.

When there is no .debug_pubnames section or the name of the DIE you

are looking for is not found in the .debug_pubnames section, try

using the slower but more complete --name option.

-F, --show-form

Show DWARF form types after the DWARF attribute types.

-h, -?, --help

Show help and usage for this command.

-i, --ignore-case

Ignore case distinctions in when finding by name using strings or

regular expressions.

-n PATTERN, --name=PATTERN

Find and print all DIE entries whose name (DW_AT_name attribute)

matches the exact text in PATTERN. Use the --regex option to

have PATTERN become a regular expression for more flexible pattern

matching.

--lookup=ADDRESS

Lookup ADDRESS in the debug information and print out any available

file, function, block and line table details.

-o PATH, --out-file=PATH

Redirect output to a file specified by PATH.

-p, --show-parents

Show a DIE's parents when using the --debug-info=OFFSET, --find,

and --name options.

-r N, --recurse-depth=N

Only recurse to a child depth of N when displaying the DWARF

information.

-u, --uuid

Show the UUID for each architecture.

-x, --regex

Treat any PATTERN strings as regular expressions when searching

instead of just as an exact string match.

-v, --verbose

Display verbose information when dumping. This can help to debug

DWARF issues.

--verify

Verify the structure of the DWARF information by verifying the

compile unit chains, die relationships graph, and address ranges.

--version

Display the current version and build date of the dwarfdump binary.

--debug-abbrev

--debug-aranges

--debug-frame[=OFFSET]

--debug-info[=OFFSET]

--debug-inlined

--debug-line[=OFFSET]

--debug-macinfo[=OFFSET]

--debug-pubnames[=PATTERN]

--debug-pubtypes[=PATTERN]

--debug-str

--apple-names[=PATTERN]

--apple-types[=PATTERN]

--apple-exttypes[=PATTERN]

--apple-namespaces[=PATTERN]

--apple-objc[=PATTERN]

Dump the specified DWARF section by name. Only the .debug_info

section is disassembled by default. Some entries support adding a

'=OFFSET' as a way to provide an optional offset of the exact entry

to dump within the respective section. When an OFFSET is provided,

only the entry at that offset will be dumped, else the entire

section will be dumped. Some options support an optional '=PATTERN'

parameter that will search the section for an entry with a matching

name. Children of items at OFFSETs can be dumped by also using the

--show-children option where applicable.

wdeiMac:crash winni$ dwarfdump —u QiNiu.app/QiNiu

error: unable to open '—u': No such file or directory

wdeiMac:crash winni$ dwarfdump —u

error: unable to open '—u': No such file or directory

wdeiMac:crash winni$ ls

QiNiu.app dSYMs winni_output_two.crash

QiNiu.crash symbolicatecrash

QiNiu2.crash winni_output_first.crash

wdeiMac:crash winni$ dwarfdump —u QiNiu.app.dSYM

error: unable to open '—u': No such file or directory

wdeiMac:crash winni$ ./dwarfdump —u QiNiu.app.dSYM

-bash: ./dwarfdump: No such file or directory

wdeiMac:crash winni$ dwarfdump —u QiNiu.app.dSYM

error: unable to open '—u': No such file or directory

wdeiMac:crash winni$ dwarfdump — uuid QiNiu.app.dSYM

error: unable to open '—': No such file or directory

wdeiMac:crash winni$ ./dwarfdump — uuid QiNiu.app.dSYM

-bash: ./dwarfdump: No such file or directory

wdeiMac:crash winni$ dwarfdump —uuid QiNiu.app/QiNiu

error: unable to open '—uuid': No such file or directory

wdeiMac:crash winni$ ./dwarfdump —uuid QiNiu.app/QiNiu

-bash: ./dwarfdump: No such file or directory

wdeiMac:crash winni$ ./dwarfdump --udiu AppStore.app/AppStore

-bash: ./dwarfdump: No such file or directory

wdeiMac:crash winni$ ./dwarfdump -h

-bash: ./dwarfdump: No such file or directory

wdeiMac:crash winni$ dwarfdump

NAME

dwarfdump -- dump DWARF debug information.

SYNOPSIS

dwarfdump [options] file1 file2 ...

DESCRIPTION

For each operand that names a mach-o or 32 bit ELF file, dwarfdump

disassembles the DWARF data found within the file. Only the .debug_info

section is disassembled unless one of the --debug-XXXX or --all options

are specified.

The following options are available:

-a, --all

Dump disassembly of all DWARF sections -- by default only the

.debug_info section is disassembled, or individual sections can be

specified by using the --debug-XXXX options.

--arch=ARCH

Dump DWARF debug information for the specified CPU architecture.

Architectures may be specified by name or by number.  This option

can be specified multiple times, once for each desired

architecture. All architectures will be disassembled by default.

-c, --show-children

Show a DIE's children when using the --debug-info=OFFSET, --find,

and --name options.

--eh-frame[=SECTION]

Dump exception handling frame information from the optional SECTION

parameter. The __eh_frame section will be dumped by default.

-e, --english

Print dwarf tags and attributes in a more readable format instead

of using the DWARF TAG_ and AT_ definitions.

--file-stats[=size]

Show file composition statistics for any input files. Each file's

contents are analyzed and broken down into byte counts for the

following categories: symbol table, string table, text and code,

DWARF debug information, STABS debug information, and other. When

multiple files are specified, byte count totals for each category

will be displayed at the end of the table.  Specify the optional

'size' argument to show all byte count results using unit suffixes:

Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte. This

option can be useful in tracking the size and makeup of mach-o

binary files, and also allows easy comparison between DWARF and

STABS built binaries and related object files.

-f PATTERN, --find=PATTERN

Search for the exact text PATTERN in the .debug_pubnames section

and print the matching debug information entries. Use the --regex

option to have PATTERN become a regular expression for more

flexible pattern matching.

When there is no .debug_pubnames section or the name of the DIE you

are looking for is not found in the .debug_pubnames section, try

using the slower but more complete --name option.

-F, --show-form

Show DWARF form types after the DWARF attribute types.

-h, -?, --help

Show help and usage for this command.

-i, --ignore-case

Ignore case distinctions in when finding by name using strings or

regular expressions.

-n PATTERN, --name=PATTERN

Find and print all DIE entries whose name (DW_AT_name attribute)

matches the exact text in PATTERN. Use the --regex option to

have PATTERN become a regular expression for more flexible pattern

matching.

--lookup=ADDRESS

Lookup ADDRESS in the debug information and print out any available

file, function, block and line table details.

-o PATH, --out-file=PATH

Redirect output to a file specified by PATH.

-p, --show-parents

Show a DIE's parents when using the --debug-info=OFFSET, --find,

and --name options.

-r N, --recurse-depth=N

Only recurse to a child depth of N when displaying the DWARF

information.

-u, --uuid

Show the UUID for each architecture.

-x, --regex

Treat any PATTERN strings as regular expressions when searching

instead of just as an exact string match.

-v, --verbose

Display verbose information when dumping. This can help to debug

DWARF issues.

--verify

Verify the structure of the DWARF information by verifying the

compile unit chains, die relationships graph, and address ranges.

--version

Display the current version and build date of the dwarfdump binary.

--debug-abbrev

--debug-aranges

--debug-frame[=OFFSET]

--debug-info[=OFFSET]

--debug-inlined

--debug-line[=OFFSET]

--debug-macinfo[=OFFSET]

--debug-pubnames[=PATTERN]

--debug-pubtypes[=PATTERN]

--debug-str

--apple-names[=PATTERN]

--apple-types[=PATTERN]

--apple-exttypes[=PATTERN]

--apple-namespaces[=PATTERN]

--apple-objc[=PATTERN]

Dump the specified DWARF section by name. Only the .debug_info

section is disassembled by default. Some entries support adding a

'=OFFSET' as a way to provide an optional offset of the exact entry

to dump within the respective section. When an OFFSET is provided,

only the entry at that offset will be dumped, else the entire

section will be dumped. Some options support an optional '=PATTERN'

parameter that will search the section for an entry with a matching

name. Children of items at OFFSETs can be dumped by also using the

--show-children option where applicable.

wdeiMac:crash winni$ dwarfdump

NAME

dwarfdump -- dump DWARF debug information.

SYNOPSIS

dwarfdump [options] file1 file2 ...

DESCRIPTION

For each operand that names a mach-o or 32 bit ELF file, dwarfdump

disassembles the DWARF data found within the file. Only the .debug_info

section is disassembled unless one of the --debug-XXXX or --all options

are specified.

The following options are available:

-a, --all

Dump disassembly of all DWARF sections -- by default only the

.debug_info section is disassembled, or individual sections can be

specified by using the --debug-XXXX options.

--arch=ARCH

Dump DWARF debug information for the specified CPU architecture.

Architectures may be specified by name or by number.  This option

can be specified multiple times, once for each desired

architecture. All architectures will be disassembled by default.

-c, --show-children

Show a DIE's children when using the --debug-info=OFFSET, --find,

and --name options.

--eh-frame[=SECTION]

Dump exception handling frame information from the optional SECTION

parameter. The __eh_frame section will be dumped by default.

-e, --english

Print dwarf tags and attributes in a more readable format instead

of using the DWARF TAG_ and AT_ definitions.

--file-stats[=size]

Show file composition statistics for any input files. Each file's

contents are analyzed and broken down into byte counts for the

following categories: symbol table, string table, text and code,

DWARF debug information, STABS debug information, and other. When

multiple files are specified, byte count totals for each category

will be displayed at the end of the table.  Specify the optional

'size' argument to show all byte count results using unit suffixes:

Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte. This

option can be useful in tracking the size and makeup of mach-o

binary files, and also allows easy comparison between DWARF and

STABS built binaries and related object files.

-f PATTERN, --find=PATTERN

Search for the exact text PATTERN in the .debug_pubnames section

and print the matching debug information entries. Use the --regex

option to have PATTERN become a regular expression for more

flexible pattern matching.

When there is no .debug_pubnames section or the name of the DIE you

are looking for is not found in the .debug_pubnames section, try

using the slower but more complete --name option.

-F, --show-form

Show DWARF form types after the DWARF attribute types.

-h, -?, --help

Show help and usage for this command.

-i, --ignore-case

Ignore case distinctions in when finding by name using strings or

regular expressions.

-n PATTERN, --name=PATTERN

Find and print all DIE entries whose name (DW_AT_name attribute)

matches the exact text in PATTERN. Use the --regex option to

have PATTERN become a regular expression for more flexible pattern

matching.

--lookup=ADDRESS

Lookup ADDRESS in the debug information and print out any available

file, function, block and line table details.

-o PATH, --out-file=PATH

Redirect output to a file specified by PATH.

-p, --show-parents

Show a DIE's parents when using the --debug-info=OFFSET, --find,

and --name options.

-r N, --recurse-depth=N

Only recurse to a child depth of N when displaying the DWARF

information.

-u, --uuid

Show the UUID for each architecture.

-x, --regex

Treat any PATTERN strings as regular expressions when searching

instead of just as an exact string match.

-v, --verbose

Display verbose information when dumping. This can help to debug

DWARF issues.

--verify

Verify the structure of the DWARF information by verifying the

compile unit chains, die relationships graph, and address ranges.

--version

Display the current version and build date of the dwarfdump binary.

--debug-abbrev

--debug-aranges

--debug-frame[=OFFSET]

--debug-info[=OFFSET]

--debug-inlined

--debug-line[=OFFSET]

--debug-macinfo[=OFFSET]

--debug-pubnames[=PATTERN]

--debug-pubtypes[=PATTERN]

--debug-str

--apple-names[=PATTERN]

--apple-types[=PATTERN]

--apple-exttypes[=PATTERN]

--apple-namespaces[=PATTERN]

--apple-objc[=PATTERN]

Dump the specified DWARF section by name. Only the .debug_info

section is disassembled by default. Some entries support adding a

'=OFFSET' as a way to provide an optional offset of the exact entry

to dump within the respective section. When an OFFSET is provided,

only the entry at that offset will be dumped, else the entire

section will be dumped. Some options support an optional '=PATTERN'

parameter that will search the section for an entry with a matching

name. Children of items at OFFSETs can be dumped by also using the

--show-children option where applicable.

wdeiMac:crash winni$ dwarfdump -u QiNiu.app/QiNiu

UUID: B2483B96-054D-3C09-BB42-8BC9C2F7AAD9 (armv7) QiNiu.app/QiNiu

UUID: 81C90F2B-A125-346F-8C83-23C2B3F1F796 (arm64) QiNiu.app/QiNiu

wdeiMac:crash winni$ dwarfdump -u QiNiu.app.dSYM

UUID: B2483B96-054D-3C09-BB42-8BC9C2F7AAD9 (armv7) QiNiu.app.dSYM/Contents/Resources/DWARF/QiNiu

UUID: 81C90F2B-A125-346F-8C83-23C2B3F1F796 (arm64) QiNiu.app.dSYM/Contents/Resources/DWARF/QiNiu

wdeiMac:crash winni$ cp

推荐阅读更多精彩内容

  • 5/15/2017 7:06:35 PM 纵观各大组件,配置文件占据极其重要的地位。可配置化也是当下开发的一流行趋...
    爱做梦的胖子阅读 2,895评论 0 8
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 123,282评论 18 134
  • 放下心头事, 行得当下文。 低头常忏悔, 佛度有缘人。
    不惑而歌阅读 117评论 7 16
  • 1 在《中国式相亲》里,有一位女嘉宾在被金星问道想找个什么样的男生时,她说了一句,要找一个笑点一样的人。 我对这句...
    小确幸来一打阅读 847评论 0 3
  • 等待·伤兵 独坐于大帐内,看着不远处火盆里的火明明灭灭,让他的心情愈发沉重了几分。原应随弟兄们...
    只为六月阅读 193评论 10 7