Debugging on iOS 4.3 simulator - iphone

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.

Related

iOS Simulator not replicating code

I have come across a strange issue with my simulator (on my iMac). It does not seem to replicate the code I have in Xcode. Even though if I run the same code on my Mac Book Air it works fine. I have downloaded it to my iPhone and that works fine. Not sure what I've done. I am running the app on Xcode 6.4 . Is it worth just deleting Xcode and then re-downloading ?
Launch the iOS Simulator and go to Simulator > Reset Content and Settings...
This wipes the simulated iOS device and should clear up any issues.
If this does not work, try "Product -> Clean" or "Window -> Projects" - select your project from the left hand side and select delete on the right hand side (alongside Derived Data).

Application crashed in iOS7 after reset Simulator

At the time of star coding in xcode 5, one thing that i struggle with is, with out any coding error or other reason my all applications got crash whenever i try to reset my "Simulator"!!! Not all the time, but most of the time it crashed. Some times it crashed at the time of quit. No matter with which version of simulator i using (iPhone Retina 3.5 Inch, iPhone Retina 4 Inch with iOS6 or iOS7). It always happen when a complete project (with no error, nothing) built on xcode 4.6 trying to quit after running in xcode 5. Though i keep the "Simulator version" as like in xcode 4.6.
If any one similar with this problem and have solution, please share it with me.
- Thanks a lot in advanced.
The error i am facing is : "Thread 1:signal SIGTERM"
Once you open your project with Xcode5 then all the settings for the views are changed to open with Xcode5, in order to make your project views to open with previous versions of xcode, you need to change the property of the views in file inspector to open with earlier versions default, by doing that your project would open in previous as well as current xcode version.
You could fix it in file inspector to open the views with the previous versions of Xcode if it is selected as Xcode5(Default(5.0)), by following image you could fix your views to open with the earlier versions of the xcode.

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.

Instrument doesn't work in xcode 4.2 simulator

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.

iPhone sdk 3.2.3 upgrade Problem

I just upgraded my Mac to Snow Leopard, and installed Xcode 3.2.3.
The app I am working on ran perfectly before the upgrade.
Now, the default image appears briefly, then the screen goes black except for the status bar. Same behavior on my iPhone 4 and in the simulator, whether I target iOS 3.2 or 4.
The app is still running and I an see from traces and in the debugger that the app is running normally, and my root view controller has been loaded, but nothing but blackness on screen
Anyone seen this before?
Thanks
JK
Problem solved. I needed to add [window makeKeyAndVisible]; to my applicationDidLaunch method. Wonder why it worked before, with just the wired up XIB file???