memory-managementmemory-leaksxcode-instrumentsretain-cyclexcode11.3

Swift 5 - Simulator launching with white screen - Instruments


I was trying to check the memory leak for my project using Instruments. Although, I could launch instruments but while its running the simulator is launching with white screen only. So that I could not debug my application to find the retain cycle. I am using Xcode Version 11.3 (11C29). Can anyone have faced such that issue. And share your thoughts to get the status of memory leak.


Solution

  • Ultimately, We have got the solution for this question. Please follow the below steps to launch the instruments,

    Run the app -> Debug Navigator -> Click CPU -> Click Profile in Instruments button in the Right window -> Then Click the Transfer button in the pop up window.

    ScreenShot1

    It will launch the Instruments with the selected project, Now you can check the retain cycle of your project through your application.

    Great!!! You can have the INSTRUMENTS now :-)

    enter image description here

    Even, You can have the UI of your app to test the memory leak.

    enter image description here