Memory profiling doesn't work with Xcode, just displays “No Selection”

前端 未结 3 1689
小蘑菇
小蘑菇 2021-01-17 19:27

I am using the latest version of Xcode 9 and macOS 10.13.

When I try to make a memory graph from the current state of my application, it shows an empty screen that sa

相关标签:
3条回答
  • 2021-01-17 19:31

    In My Case I was Using Xcode 9. When I have checked to Xcode-> Preferences->Locations->Command Line Tools = Xcode 8.3.3 so I just Changed from Xcode 8.3.3 to Xcode 9.0 and It starts working.

    0 讨论(0)
  • 2021-01-17 19:46

    I tried building the application on a physical device and it worked, hovever, the memory graph did not show my Swift classes (for e.g., my controllers were simply not there). Allocation observing worked fine with Instruments, nonetheless.

    It seems like this is an issue caused by the simulator.

    0 讨论(0)
  • 2021-01-17 19:53

    In my case the Build Configuration for Profiling was set to Release instead of Debug in the Scheme. After changing it, I could just profile in the Simulator.

    Hope this helps.

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