raw crash log分析

Hi,All,

glad to share with you.

1. find /Applications/Xcode.app -name symbolicatecrash -type f

find the tool's named symbolicatecrash location

here is my bash's output

/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework/symbolicatecrash

/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework/symbolicatecrash

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework/symbolicatecrash

/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash

I used the last one.

2. cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework  (optional,you can use the location of symbolicatecrash to call command directly)

3../symbolicatecrash /Users/xxx/Desktop/appDsyms/CleanPay\ Mobile.app /Users/xxx/Desktop/appDsyms/bb3cf242156e765551f2527e70b39e3e.crash >/Users/xxx/Desktop/appDsyms/crash.txt

OK!

Error analysis

1).-bash: crash.log: Permission denied  

./symbolicatecrash /Users/xxx/Desktop/appDsyms/CleanPay\ Mobile.app /Users/xxx/Desktop/appDsyms/bb3cf242156e765551f2527e70b39e3e.crash >crash.log

root cause:I have cd in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework,and I don't have privilege write here.

2)Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash line 69.

fixed method: export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer"

3)Use of uninitialized value $data in substitution (s///) at ./symbolicatecrash line 919.

root cause:parameter's sequence is wrong,first is .crash,and second is .app or .app.dsym

你可能感兴趣的:(raw crash log分析)