Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用仪器,但我在时间分析器中只看到 0x00345 等我没有看到任何目标 c 代码,尽管我启用了“仅显示目标 c”选项......感谢任何帮助!
问题的最可能原因是没有为您的项目生成调试符号。没有调试符号 Instruments 只显示内存地址,就像你的第一个屏幕截图中显示的那样。
有两种方法可以解决问题。首先,使用 Debug 构建配置分析您的应用程序。使用项目窗口工具栏中的 Scheme 菜单来更改构建配置。其次,将 Release 构建配置的 Generate Debug Symbols 构建设置设置为 Yes。