简体   繁体   English

为什么Testflight中的崩溃日志不是Xcode中的符号?

[英]Why aren't the crashlogs from Testflight symbolicating in 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. 我刚开始从Testflights获取我正在处理的预发布应用程序的崩溃报告,但无论出于何种原因,Xcode都没有正确地象征日志。

这就是我在Xcode中看到的

The build is available (was built, archived and uploaded on this computer in this version of Xcode), so what am I missing here? 构建是可用的(在此版本的Xcode中构建,存档并上载到此计算机上),所以我在这里缺少什么? Why aren't these crash logs symbolicated? 为什么这些崩溃日志不是象征性的?

Apparently this is a bug that started happening when Apple started accepting bitcode. 显然,当Apple开始接受bitcode时,这是一个开始发生的错误。 Not all of the dSYMs are downloaded when you click on 'Download dSYMs…' in the Xcode organizer. 当您单击Xco​​de管理器中的“下载dSYM ...”时,并未下载所有dSYM。 Here's how I fixed it: 以下是我修复它的方法:

  1. Manually downloaded the dSYMs from the build page in iTunes Connect 从iTunes Connect中的构建页面手动下载dSYM
  2. Right-clicked on the crash log in Xcode and opened it in Finder 右键单击Xco​​de中的崩溃日志,然后在Finder中打开它
  3. The xcrashpoint file you'll find is an archive, so right-click and show package contents 您将找到的xcrashpoint文件是一个存档,因此右键单击并显示包内容
  4. Drill down to your .crash file(s) 深入查看.crash文件
  5. Copy the .crash file(s) to a different directory, for instance the desktop 将.crash文件复制到其他目录,例如桌面
  6. Copy the dSYMs folder you downloaded to the same directory 将下载的dSYMs文件夹复制到同一目录
  7. Open Terminal, cd to the folder 打开终端,cd到文件夹
  8. In terminal, set the developer dir path: 在终端中,设置开发人员目录路径:

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

  1. Then symbolicate the files with (replace your paths and filenames here): 然后使用(在此处替换路径和文件名)来表示文件:

/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. 您有符号化的崩溃日志。

I still get this in Xcode 10. As a work around. 我仍然在Xcode 10中得到这个。作为一个解决方案。 Add the crash logs to your devices logs and they will be symbolicated. 将崩溃日志添加到设备日志中,它们将被符号化。 At least in my experience. 至少在我的经验中。

Step 1- In Xcode Window>Devices & Simulators [select your device on the left]>view device logs. 步骤1-在Xcode窗口>设备和模拟器[在左侧选择您的设备]>查看设备日志。

Step 2- Then Xcode> Window> Organizer > Crashes tab. 步骤2-然后Xcode> Window> Organizer> Crashes选项卡。 Right click a crash and click show in finder. 右键单击崩溃并单击查找器中的显示。 This shows .xccrashpoint files. 这显示.xccrashpoint文件。 Right click> show package contents. 右键单击>显示包内容。 Drill down into the folders until you see the .crash files. 深入查看文件夹,直到看到.crash文件。 Then drag them into the device logs list we opened in step 1 然后将它们拖到我们在步骤1中打开的设备日志列表中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM