Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allocations tracking library was not loaded in time and unable to see stack trace

enter image description hereFor opening Instruments we must profile first then select which template we have to profile memory leaks,allocations,zombies. But still I get the error allocations library was not loaded, and could not see the stack trace also. And could not find the reason of leak in the application

As mentioned solution in other links, I am using both simulator (iOS7), and active scheme (iOS7)

Xcode Version:Version 5.0.2 (5A3005) Simulator: iOS 7.0.3 (111B508) Mac: OS X Version 10.8.5

Please excuse if any information above is incorrect. Please give answers..Thanks in advance

like image 983
user1740045 Avatar asked Apr 04 '14 07:04

user1740045


3 Answers

I'm running into the issue on iOS 7 simulator. I still don’t know how to fix this, but I may have found a workaround.

  1. Tap on “Record button” to stop the instrument if it’s running.
  2. Select Instrument -> Delete ‘Allocations’ Instrument… menu. You can see only ‘Leaks’ in the Instruments
  3. Tap on “Record button” to star the instrument. Start your application on the simulator.
  4. Tap on Library button and drag “Allocations” onto Instruments. You can see 'Leaks' and "Allocations" in the Instruments

I can see the stack trace after Step 4.

like image 161
user3838999 Avatar answered Oct 28 '22 03:10

user3838999


I experienced this in Xcode 8.3 and it was caused by Build Configuration mismatch for Run and Profile. enter image description here Profiler tried to run Release type of application which was not even built. enter image description here So it caused the error. enter image description here After changing Profile Build Configuration to product type that was already built, in my case Debug, it resolved the issue and Instruments worked again. enter image description here

like image 24
Laimonas Avatar answered Oct 28 '22 02:10

Laimonas


In my case it only works using the iOS simulator version 8.1 +.

Also, don't forget to change to 8.1 in the project Build Settings under iOS Deployment Target

like image 1
OhadM Avatar answered Oct 28 '22 02:10

OhadM