Xcarchive = dSYM = dSYM = dSYM = dSYM = dSYM = dSYM = dSYM By right-clicking the package contents, you can see a dSYMs folder where the dSYMs files are located. If there are multiple dSYMs files, select only the dSYMs files of the main project, not those of the widget. 2. The path to the tool is set in the symbolicatecrash tool script, so use it directly. The path for the symbolToolPath may vary from version to version of Xcode, so find the path for the Symbolicatecrash instead. There are many ways to obtain a crash file. The most common methods are:

Xcode->Window->Devices and Simulators->View Device Logs. Download the flash back file using Xcode->Window->Organizer->Crashes. Through monitoring platforms such as BugTags.Copy the code

Copy the following script with a random name such as crashsymbolic. sh and put it in the same folder with the dSYM and crash files.

sh CrashSymbolic.sh
Copy the code

The parsed symbol.crash crashsymbolic. sh code is then generated as follows:

#! / bin/bash export DEVELOPER_DIR = / Applications/XCode. The app/Contents/Developer echo "- began the first parameter is the crash path -- -- -- -- --" SymbolToolPath ="./symbolicatecrash" crashPath="" dSYMPath="" if [! -f "$symbolToolPath"] symbolToolPath="/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolica The path for the tecrash" echo "symbolicatecrash tool is: $symbolToolPath if [-f "$symbolToolPath"] then echo "Symbolicatecrash" else echo "Unable to find symbolicatecrash tool" fi fi function findFile(){crashPath=$(find.-name "*.crash")} if [-n "$1"] then CrashPath =$1 echo" $crashPath" else findFile echo "" fi if [! -f "$crashPath"] then echo" Cannot find crash file "exit fi dSYMPath=$(find.-name "*.dsym" -print) echo" $sympath "if [! -d $sympath] then echo" exit fi #./symbolicatecrash./*.crash./*.app.dsym > symbol.crash $symbolToolPath $crashPath $dSYMPath > symbol.crashCopy the code

Error: “DEVELOPER_DIR” is not defined at./symbolicatecrash line 69. Solution: terminal executing the following command to set the environment variable export DEVELOPER_DIR = / Applications/XCode. The app/Contents/Developer. The script has been executed. Warning: unsupported file type: error, check if there is a file or directory name that contains Spaces, or if the dSYM file contains other files.