Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run Instruments from Xcode

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 happens. There is no message in Xcode's console telling me what's wrong either. I used to be able to attach it to process or launch the process from Instruments as well, all these are no longer working.

Any idea what's causing this?

like image 470
Boon Avatar asked Aug 31 '09 18:08

Boon


People also ask

How do I use Instruments in Xcode?

Instrumenting AllocationsPress Command-I in Xcode, select Allocations from the list and press Choose. After a moment, you'll see the Allocations instrument. It should look familiar because it looks a lot like Time Profiler. Click the record button in the top-left corner to run the app.

Where is Instruments in Xcode?

If you have Xcode already, you already have Instruments. From Xcode's product menu, choose Profile. Although Instruments is embedded within and is often used with Xcode, Instruments is a separate app which may be used independently as needed. You are free to choose how you start your performance analysis quest.

How do I play an instrument on my Mac?

Instruments will be installed to your system drive, in /Developer/Applications/ -- run it from there, or from the Xcode application menu item select Open Developer Tool->Instruments (in newer versions of Xcode). When Instruments first starts, you must make a template choice.


2 Answers

what worked for me was

  1. running the app on Simulator
  2. going back to Xcode's Debug Navigator (CMD+7)
  3. selecting CPU/Memory
  4. clicking Profile in Instruments
like image 99
meowmeowmeow Avatar answered Oct 12 '22 23:10

meowmeowmeow


I had the same issue! I could only use Instruments on my iPhone but not on iPad or iPad2! Whenever I started instruments with Xcode 4 it would just beep and the record button would be disabled..

I solved this issue by in XCode going to >Targets>Edit Scheme>Profile "yourAppName" and changing the Build Configuration from Release to Debug. Then try to profile again Product>Profile

If you get the beep again.. You will see that it says "CHOOSE TARGET" next to the record button open the drop down >Choose Target> "yourAppName" then hit record.

This solved it for me and was finally able to run instruments again!

I know this post is old but i hope it helps someone.

like image 35
Anthony McCormick Avatar answered Oct 13 '22 01:10

Anthony McCormick