#!/bin/shif [ $# -ne 2 ]thenecho "Usage: Copy 'app_name'.app and 'app_name'.app.dSYM into `dirname $0` and run"echo "`basename $0` app_name crash_file.crash"exit 1fiCRASH=$2APP=$1DEVELOPER_DIR=`xcode-select --print-path`export DEVELOPER_DIRSYMBOLICATE_PATH=${DEVELOPER_DIR}/Platforms/iPhoneOS.platform/Developer/Library//PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrashset -eCRASH_UUID=`grep --after-context=2 "Binary Images:" "${CRASH}" | grep "${APP}" | grep -o "<.*>" | sed -E "s/<(.*)>/\1/"`echo "Found crash UUID: \"${CRASH_UUID}\""APP_UUID=`dwarfdump --uuid ${APP}.app/${APP} | cut -d ' ' -f 2`echo "Found app UUID: \"${APP_UUID}\""DYSYM_UUID=`dwarfdump --uuid ${APP}.app.dSYM | cut -d ' ' -f 2`echo "Found dsym UUID: \"${DYSYM_UUID}\""echo "-----------------------------------"echo "UUID's must match ${CRASH_UUID} ${APP_UUID} ${DYSYM_UUID}"echo "-----------------------------------"mdfind "com_apple_xcode_dsym_uuids = *""${SYMBOLICATE_PATH}" "${CRASH}"
Saturday, November 17, 2012
Symbolicate crash files
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment