为什么Testflight的崩溃日志不是用Xcode表示的? [英] Why aren't the crashlogs from Testflight symbolicating in Xcode?

查看:73
本文介绍了为什么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开始接受位码时开始发生的错误.当您在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. 右键单击Xco​​de中的崩溃日志,然后在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/>output.log

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

And voila! You have your symbolicated crash log.

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

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