在Instruments中对iPhone应用程序进行性能分析时缺少符号名称 [英] Missing symbol names when profiling iPhone app in Instruments

查看:122
本文介绍了在Instruments中对iPhone应用程序进行性能分析时缺少符号名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在对iPhone应用程序进行性能分析时,我没有得到任何符号名称.

I don't get any symbol names when I'm profiling my iPhone app.

它在模拟器中以及在设备上使用调试"模式时有效,但在使用发行版"时则无效(因为在进行概要分析时应使用).我知道dsym文件是为发布和调试生成的,所以这不是问题.

It works in the simulator and when using Debug mode on the device, but not when using Release (as you should use when profiling). I know the dsym-file is generated for both release and debug, so that is not the problem.

我已经尝试过此处描述的解决方案:

I've tried the solution described here:

使用Instruments对iPhone应用程序进行分析时,缺少符号名称

但是当我选择重新符号化文档"时,我的应用程序名称未出现在二进制列表中(使用调试时会出现),所以我无法尝试手动添加dsym文件.

But when i choose "Re-Symbolicate Document" my app's name doesn't appear in the binary list (it does appear when using debug), so I can't try to manually add the dsym file.

我也尝试过:

  • 从Spotlight的隐私"列表中添加和删除我的派生数据"文件夹
  • 从iPhone删除应用程序
  • 清洁&在进行分析之前进行构建
  • 在构建和分析之前删除派生数据"文件夹

可能是什么问题?

推荐答案

我在iPhone上进行个人资料配置时也缺少符号. 但是当我构建一个用于分析崩溃报告的平台时,我却一直找不到dsym文件.我记得我是通过重新索引聚光灯来解决它的.

today i also missing symbols when profile on iPhone. but i ever missing to find dsym file when i build a platform to analyse the crash reports. i remember i fix it by reindex spotlight.

所以这一次我这样做了,因为我在重新符号化的文档中找到了,乐器无法找到被专门引用的dsym文件.所以我想这是由于系统无法在Spotlight的帮助下找到它引起的(系统始终使用mdfind命令查找dsym文件).如果无法找到聚光灯,也许仪器也无法找到dsym文件.

so this time i do it to, because i find in resymbolicate documents, the instruments cannot find the dsym file for specfic udid. so i guess it is caused by system failed to find it with the help of spotlight(system always use mdfind command to find dsym file). if the spotlight failed to find, maybe the instrument cannot find dsym file too ..

所以我去搜索重新索引命令: sudo mdutil -E/卷/Macintosh \ HD

so i go search the reindexing command: sudo mdutil -E /Volumes/Macintosh\ HD

-E将告诉系统重新编制索引 此命令可重新索引根磁盘.所以可能要花一些时间.

-E will tell the system to reindexing this command to reindex the root disk. so it may costs some time.

重新索引后,最好提供重新符号化的路径.

after reindex, it's better for you to give a path to resymbolicate.

我可以使它正常工作,如果您有不明白的地方,请告诉我.谢谢.

it's ok for me to make it work, if you have something don't understand, please let me known. thanks.

这篇关于在Instruments中对iPhone应用程序进行性能分析时缺少符号名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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