How can i deal with instruments hanging issue? - iphone

I am stuck with instruments for iPad app.I am developing app with map view.I can run instruments with iPhone for memory leaks and it's work fine.But problem is that for same code and same app instruments is not running with ipad.I checked my entire code but there is no such problem.Even Instruments is running with iPad simulator for same code.
If i start interments after loading my app on my device than it will give following message.
Failed to start Instruments daemon for 'iOS' on 'iPad (v4.3.5)' ((null))
I am using Xcode 4.0.2
Please Help me,
Thanks In ADvanced.

Related

Xcode 4.2.3 App Not Running On iPhone 4S

I have just started to learn how to code iOS apps. I have made a quick app as a first test. It runs perfect in the simulator but when running on my iPhone 4s the app runs and instantly i am set back to home screen.
Heres a link to my app if you could kindly view it and see what the problem could be because I have no clue.
http://netload.in/dateiGpnBm98FTY/FirstTest.zip.htm
Thank You
Try set a Device frameworks, not a frameworks for simulator

iOS Simulator and Instruments freeze

I'm trying to do an iOS app and when I press CMD+I to launch Instruments to check for memory leaks the simulator freezes after a couple of gestures and so does Instruments.
Sometimes after a minute (or more) it works, but it's driving me nuts :(
I have Mac OS Lion and Xcode 4 (Lion version downloaded from Apple's dev portal).
Please help!
Thanks in advance!
Try the fix from here:
Bug with starting Instruments via Profile under XCode 4.1 Build 4B110
Basically, after Instruments starts your app, Command-Tab to Xcode and back. I had the same problem but this fixed it.

Debugging ok on iPhone4 but EXC_BAD_ACCESS on iPod Touch and iPhone 3G

I'm developing an app on my Macbook debugging it on my iPhone4. The app make use of camera, internet connections, and normal stuffs.
Today I'm trying to debug it on an iPod Touch 2G and on an iPhone 3G......but it always install the app on the device, it says "running" but before the app il really launched I get a "EXC_BAD_ACCESS".....non message...even NSZombieEnabled didn't work!!
Any help?
Thanks
Check the stacktrace when it crashes then look up the last called function.
It might be a new API function and in that case you must first check for it's existence in the installed iOS version.

app crashing on device

the app I've installed on an iPhone 3G device periodically crashes. I'm wondering if it's the device or the code. the code works fine on the simulator.
I have other apps from the app store that do the same thing. e.g. the stackoverflow app - whenever I do a search the app crashes. I've even had the iPod app crash too.
I've restored the phone a few times and still the same thing. I'm getting ready to upload the app to the app store and was wondering if anyone had any tips to make sure that my code is not the problem. it's difficult to tell because there are no errors in the simulator or memory leaks in Instruments
thanks in advance.
You can be guaranteed that it is your code. Run it in the debugger on the device and see where it is crashing. If you are getting EXC_BAD_ACCESS use the following to help track it down
http://www.cocoadev.com/index.pl?NSZombieEnabled
It most certainly is your code that crashes.
Run in debug mode and watch the console (real debug mode, not only the debug target).
Also, you can (and should) grab the crash report from the organizer. You can also watch the device's console there.
Are you sure you are not running out of memory?
the easiest way to see if this is your problem is to implement didReceiveMemoryWarning method of your controllers and check if they are called.
In the simulator you can simulate a memory warning but I am not sure if even in simulator app will crash if memory is not released. (I believe not)
Also run your app with instruments, using allocations: Run > Run with performance tools > Allocations.
And use your app for a while and you will see. ;)

App doesn't get fully launched with Instruments (Allocations) on the device

Instruments launches my app on the device and listens to the allocations. (In "Allocations" mode) It launches extremely slow. Then the app quits after about 35 seconds. On the simulator Instruments runs fine.
Is there a solution to this? Is iOS killing my app? How am I supposed to debug this if Instruments increases launch time that much?
Thanks in advance
I'm on a iPhone 3G (iOS 4) with XCode 3.2.3
Any message from Instruments.app? I have had a similiar problem until I build for the device in debug mode and used a development provisioning profile for it. A distribution profile even compiling fine in debug mode hasn't done the job.