34

I have tried following the solution to this question. All instruments work perfectly but leak instruments cause this error:

An error occurred trying to capture Leaks data, Error retrieving leak information.

I want to be able to use Leak Instrument without any errors. Image is also shown below.

Please help me. Thanks in advance.

SK98
  • 25
  • 6
Vinod Kumar
  • 3,375
  • 1
  • 17
  • 35
  • What have you tried? Can you profile this project with other instruments, such as the Time Profiler instrument? Can you get the Leaks instrument to work on another project? You need to update your question and provide more information for anyone to be able to help you. – Swift Dev Journal May 16 '17 at 18:14
  • For me, this happens when running my app with iOS 10.3. I tried running it on iOS 9 and it works perfectly. – Anna Fortuna May 29 '17 at 21:36
  • I am using ios 10.3. It works perfectly in lower version.@AnnaFortuna – aafat May 30 '17 at 04:35

6 Answers6

2

This happened to me after updating the provisioning profile. It started working after restarting Instruments.

Matthew Korporaal
  • 2,369
  • 1
  • 20
  • 25
2

Switch to Console view to know the specific reason

Library not loaded

For me the issue was caused by deleted Pod. Cleaning the project fixed that.

Andrey Gordeev
  • 30,606
  • 13
  • 135
  • 162
2

Try Checking your provisioning profile for Profile Tool on scheme of the app.

  1. Go to Scheme editing window (just press command shift and , (comma)).
  2. Set Build Configuration to Debug.

enter image description here

dip
  • 3,548
  • 3
  • 24
  • 36
1

check that if you switch the Address Sanitizer.I close Address Sanitizer and then it works. Edit Scheme -> Diagnostics

AlexCai
  • 11
  • 1
  • does not change anything – Torsten B May 01 '20 at 09:16
  • I was compiling using the command line and for me this was precisely what was causing the problem. When I stopped passing "-fsanitize=address" flag to the compiler this error went away and I was able to profile and find leaks and fix them. Thank you. – trss Dec 08 '22 at 05:21
0

i upgrade the Xcode from 8.3.2 to 8.3.3 , it not works. Then I tried running it on true device , it works well.

0
rm -rf ~/Library/Developer/Xcode/DerivedData

or

rm ~/Library/Developer/Xcode/DerivedData/YouProject

close xcode restart your system then check it

Karim
  • 322
  • 4
  • 20