Xcode 4 Instruments doesn't show source lines

前端 未结 8 1020
执笔经年
执笔经年 2021-01-30 14:30

I\'ve just started playing with Xcode 4, and found that, no matter how I setup debugging symbols in the project, Instruments refuses to display source lines for stack trace item

8条回答
  •  清酒与你
    2021-01-30 14:58

    I found out what the issue was, as I had the exact same problem.

    The answer comes from: Missing symbol names when profiling IPhone application with Instruments

    1. Ensure that you have compiled your code with debug flags enabled (e.g. -g3).
    2. Execute dsymutil on your binary/dynamic library that you want to be able to access the debug information for.

    This generates a dSYM bundle folder, and when indexed by Spotlight the debug information necessary is made available to Instruments.

    I suppose in your case, it took some time before Spotlight had things indexed - and when it had, then things magically worked out.

提交回复
热议问题