Can't run Instruments from Xcode

后端 未结 9 2091
一生所求
一生所求 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:32

    The problem is instrument needs a gateway to your app and simply pointing to it doesn't do it. The Instrument's workflow is as such: You need to profile it from Xcode first.

    I highly recommend seeing Apple's own links shared in this answer. They are amazingly good and simple.

    Apple's documentation says

    If Instruments has access to information about your app’s source code, a leak is reported as a class name. Otherwise, a leak is reported as a memory address, such as Malloc-size. To ensure that Instruments has access to information about your code, initiate profiling from Xcode (see Profile from Xcode) or configure a symbol mappings file (see Map Data to Source Code).

提交回复
热议问题