symbolicating-ios-8-crash-logs

If you’re having crash logs come in via iTunes Connect or another service and having trouble symbolicating them, you’re not alone. I spent about an hour trying to coerce Xcode into showing me the location of a crash in my application code, but Xcode 5 is not able to symbolicate crashes from iOS 8 because its developer toolchain lacks the necessary symbol files.

The solution is to use one of the Xcode 6 beta builds, which include the symbol files for iOS 8. I have Xcode 6 Beta 4 installed, and it doesn’t have the Device Logs pane of the Devices window like Xcode 5 does, so you’ll need to use `symbolicatecrash`, the script the powers resymbolication in Xcode.

  1. Gather your crash log and the dSYM file for your app.
  2. Open a terminal and navigate to where you put your crash log and dSYM file.
    • We’ll call them `myapp.crash` and `myapp.app.dSYM`
  3. Run `sudo xcode-select –switch /Applications/Xcode6-Beta4.app/Contents/Developer`
    • Replace `Xcode6-Beta4.app` with whichever version you have installed.
  4. Finally, run:

DEVELOPER_DIR=`xcode-select -print-path` /Applications/Xcode6-Beta4.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash -o ./myapp-resymbolicated.crash ./myapp.crash ./myapp.app.dSYM

If everything went smoothly, you’ll now have a file in the current directory named `myapp-resymbolicated.crash` that contains the resymbolicated crash report. That should be it!


http://juliusparishy.com/symbolicating-ios-8-crash-logs/ 参考网址

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值