如何可靠地使Instruments 4.x符号化? [英] How do I reliably get Instruments 4.x to symbolicate?

查看:151
本文介绍了如何可靠地使Instruments 4.x符号化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点困境 - 无论我做什么,我都无法让Apple的Instruments.app象征任何包含的乐器,而我在我的设备上进行分析(它在iOS模拟器中运行正常)。 / p>

我已经尝试了我能想到的一切,包括:




  • 检查我是否正在构建dSYM

  • 在调试和发布构建方案之间切换

  • 确保我的开发证书中使用的签名证书

  • 从Spotlight的隐私列表中添加和删除派生数据文件夹

  • 清洁&在分析之前构建

  • 在构建和分析之前删除派生数据文件夹



我不知道从哪里开始 - 我在本周早些时候有一两个小时的符号,但我根本无法让它们完全显示出来。很好地弄清楚神秘的咒语是什么让仪器总能找到我的应用程序的符号。

解决方案

在文件菜单中Re-Symbolicate Document有一个选项。选择此选项,您可以在列表中找到二进制文件,并使用定位按钮手动指定dSYM的位置。此处还有一个复选框,用于使用Spotlight查找dSYM;如果Spotlight在某些时候出现了问题,它可能会被取消,但现在已经修复了。



看来你不能这样做,而仪器实际上是仪表,但似乎确实如此保持下次点击Record时的设置。但是,在您关闭仪器后,它似乎不记得设置。


I have a bit of a dilemma — no matter what I do, I cannot get Apple's Instruments.app to symbolicate any of the included instruments while I'm profiling on my devices (it works OK in the iOS Simulator).

I've tried just about everything I can think of, including:

  • Checking that I'm actually building a dSYM
  • Switching between Debug and Release build schemes
  • Making sure that the signing certificate being used in my Development cert
  • Adding and removing my Derived Data folder from Spotlight's Privacy list
  • Clean & Build before profiling
  • Removing the Derived Data folder before building and profiling

I'm not sure where to go from here — I had symbols for an hour or two earlier in the week, but I just can't get them to show up at all anymore. It would be great to figure out what the mystical incantation is to make Instruments always find my app's symbols.

解决方案

In the File menu there is an option for Re-Symbolicate Document. Choosing this, you can find your binary in the list and use the Locate button to specify the location of the dSYM manually. There is also a checkbox here for using Spotlight to find the dSYM; it's possible it got deactivated if Spotlight was borked at some point but is now fixed.

It seems that you cannot do this while Instruments is actually instrumenting, but it does seem to keep the setting for the next time you hit Record. It does not, however, seem to remember the setting after you close Instruments.

这篇关于如何可靠地使Instruments 4.x符号化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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