Instrument doesn't work in xcode 4.2 simulator - iphone

I am able to run the instrument on my device and can check for memory leaks but when I run the same code on simulator with instrument it hangs and my app can not go beyond splash screen. As soon as I force quit the instrument my app continues working. I have also tested the code using xcode 3 and instrument is working fine for both i.e for simulator as well as on device.
Anyone can suggest what I am doing wrong while running instrument on xcode 4.2 simulator.

After trying everything I have install again my xcode and its now properly working.

Related

XCode 7: How to find a bug on iPhone when simulator works fine?

I created an ios app, which runs fine on every simulator. With XCode 7 I transfered it to my iPhone 4S. There the Splashscreen is shown and then app is terminated. I don't have any idea why?
How can I find out, what's the problem and where it is?

Debugging in XCode is not forcing a rebuild

I am learning XCode with Swift by writing a basic iPhone app. I run the app in the simulator by pressing the 'play' button. However, when I change the code and then click play (without shutting down the simulator), I don't think the latest app code gets executed in the simulator. Any advice as to what's happening?

iPhone simulator slow startup on iOS 6.0

For some reason the iPhone simulator takes several seconds (~12-13s) to start my app when I run it in iOS 6.0 or 6.1 mode (that's before the app's default screen appears, so it doesn't seem to be caused by the app's code). I think that's actually slower than when I start the app on the device. If I switch to 5.0 or 5.1 it takes just 2-3 seconds.
Has anyone else noticed this? Any solutions? (I've cleared the whole ~/Application Support/iPhone Simulator directory, but it didn't help.)
You can select iOS Simulator from top menu. After it you can Reset Contents and Settings (third from top). it will reset you simulator. Remove all application from your simulator. Please try after it.

Debugging on iOS 4.3 simulator

I've been developing everything with the Xcode 4.2 on leopard, I recently installed Lion, the Lion version of Xcode 4.2, and everything turned into 5.0! The simulator, my project, everything.
Now I tried to make my project deployment target 4.3 and changed the simulator, and all I get is a black screen when my application starts, I don't even hit breakpoints on viewDidLoad.
I've had this frustrating problem before (black screen after launching the app in the simulator and no breakpoints hitting and no indication anything was happening in the Debugging console).
I sense it was a corrupted XIB file somewhere between the build products and the simulator.
Now I'm not 100% certain what fixed it for me, but I did a combination of "cleaning" the project (and even throwing away the Derived Data folder) and also deleting the app from the simulator, then restarting both Xcode and the simulator before rebuilding the app.

Xcode Instruments stops recording when iPad app leaves the splash screen

I am writing an iPad app and I would like to use Xcode Instruments to see if my app has any memory leaks. I have used Instruments successfully before but with Xcode 4.0.2 recently with this app I have the problem described in the title. It only works very rarely.
Steps to use Instruments:
- From the Xcode menu: Product>Profile
- Choose the Leaks instument
- Watch Instruments start recording allocations and leaks while the app shows its splash screen.
- The app's initial view controller becomes visible and Instruments stops recording at the same time.
Am I doing something wrong? Is this a bug in Instruments?
Any help would be appreciated.
Edit:
Instruments works on the iPad simulator but not the device (iPad 2)
Have you tried changing the profile build from Release to Debug (go into "Edit Schemes" and you can change it there for Profiling)?
It could be something in the release build is causing Instruments to disconnect.
Also, pull up the device console in Organizer while it is running, and see if you see any messages related to the detachment.
Be sure, you device is turned on (in some cases it can be spontaneously shut down).