#!/bin/bash
if [ $# != 1 ];then
echo "Params count error"
exit
fi
#crash文件路径
mountPaht="/Volumes/WORKGROUP/bugzilla/xunleivideo/1.1/"
crashName=$1
crashPath=${mountPaht}${crashName}
CUR_PWD=`pwd`
#复制crash文件到本地
cp ${crashPath} ${CUR_PWD}
#符号化crash
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash ${crashName} iCloudPlayIPhone.app > ${crashName}.txt
cp ${crashName}.txt ${mountPaht}
rm ${crashName}
rm ${crashName}.txt
09-17
09-17
11-12