Xcode 4 Instruments doesn't show source lines

前端 未结 8 1023
执笔经年
执笔经年 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:53

    I had this issue today and solved it this way:

    1. Edit scheme
    2. Click on "Profile" on the left (this is the important step)
    3. Change Build Configuration to Debug

    That should do it. Note that for whatever reason, the build target is not set to the same build configuration as the profile target and this has tripped me up more than a time or two.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题