#!/bin/bash
export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer"
mypath="/Users/xxx/Desktop/crash"
myapp="xxxx.app.dSYM"
myapp="xxxx.app.dSYM"
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/
for file in $mypath/*.crash
do
echo $file
#echo ${file%.*}_log.crash
./symbolicatecrash $file $myapp >${file%.*}_log.txt
done
do
echo $file
#echo ${file%.*}_log.crash
./symbolicatecrash $file $myapp >${file%.*}_log.txt
done
cd $mypath