Xcode 4 Instruments doesn't show source lines

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

    The other answers are good long-term fixes. If you'd rather not wait for Spotlight to rebuild its index and just need to get symbols for one Instruments session, you can ask Instruments to symbolicate the current session.

    1. Choose File → Re-Symbolicate Document… screenshot of re-symbolicate menu item
    2. Locate your binary in the list that appears. It should be the same name you see on the Springboard. Select your binary and click "Locate." enter image description here
    3. Go back to Xcode. Control-click on your .app build product and choose "Show in Finder".right-click menu screenshot showing show in finder item
    4. This will reveal the directory containing your binary as well as its dSYM file. Go back to Instruments, navigate to this directory, and select your dSYM file. The easiest way is to just drag the dSYM file straight from the Finder to the "Select dSYM" dialog in Instruments.
    5. Finally, click "Symbolicate" in Instruments. You should now see symbols in the traces rather than hex offsets.

提交回复
热议问题