Can't run Instruments from Xcode

后端 未结 9 1941
一生所求
一生所求 2021-02-20 11:52

I recently upgraded to Snow Leopard and since then I am having difficulty running Instrument to instrument my app from Xcode. The Record button would be grayed out, and nothing

9条回答
  •  不思量自难忘°
    2021-02-20 12:20

    I was unable to get instruments to work with my iPhone (it had previously worked). The behaviour I saw was that xcode would say "finished running - Profiling [app name]" before the instruments window was even shown (the choose instrument window).

    I worked around this by going to product->scheme->edit scheme, select profile [app name] and select an instrument (i.e. Allocations) under the instrument drop down (instead of "ask on launch").

    Once I did this, selecting Product->profile worked for me and the instruments was running.

    I wanted the zombie instrument which strangely isn't in the xcode dropdown, I was able to use this by simply using file->new in instruments (while the allocations instrument was still connected and running) and I could then choose the zombies instrument and the record button wasn't greyed out!

    All of this was with iOS 7.0.3 and xcode 5.0.1.

    I hope this helps at least one other person to stop ripping their hair out, but knowing xcode I somehow doubt it!

提交回复
热议问题