为什么 Testflight 的崩溃日志在 Xcode 中没有符号化? [英] Why aren't the crashlogs from Testflight symbolicating in Xcode?

查看:63
本文介绍了为什么 Testflight 的崩溃日志在 Xcode 中没有符号化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始从 Testflights 获取我正在开发的预发布应用程序的崩溃报告,但无论出于何种原因,Xcode 都没有正确地符号化日志.

I just started getting crash reports from Testflights for a pre-release app that I'm working on, but for whatever reason Xcode isn't properly symbolicating the logs.

构建可用(在此版本的 Xcode 中在此计算机上构建、存档和上传),那么我在这里缺少什么?为什么这些崩溃日志没有符号化?

The build is available (was built, archived and uploaded on this computer in this version of Xcode), so what am I missing here? Why aren't these crash logs symbolicated?

推荐答案

显然这是一个在 Apple 开始接受 bitcode 时开始发生的错误.当您在 Xcode 管理器中单击下载 dSYM..."时,并非所有 dSYM 都会被下载.这是我修复它的方法:

Apparently this is a bug that started happening when Apple started accepting bitcode. Not all of the dSYMs are downloaded when you click on 'Download dSYMs…' in the Xcode organizer. Here's how I fixed it:

  1. 从 iTunes Connect 的构建页面手动下载 dSYM
  2. 在 Xcode 中右键点击崩溃日志,在 Finder 中打开
  3. 您将找到的 xcrashpoint 文件是一个存档文件,因此请右键单击并显示包内容
  4. 深入了解您的 .crash 文件
  5. 将 .crash 文件复制到其他目录,例如桌面
  6. 将下载的 dSYMs 文件夹复制到同一目录
  7. 打开终端,cd 到文件夹
  8. 在终端中,设置开发者目录路径:

export DEVELOPER_DIR='/Applications/Xcode.app/Contents/Developer'

  1. 然后用符号表示文件(在此处替换您的路径和文件名):

/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash name_of_crashfile.crash name_of_downloaded_dSYMs_dir/>输出日志

瞧!你有你的象征性崩溃日志.

And voila! You have your symbolicated crash log.

这篇关于为什么 Testflight 的崩溃日志在 Xcode 中没有符号化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆