iOS Simulator not replicating code - iphone

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).

Related

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.

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.

iPhone Simulator: start iPad by default?

Can I somehow force a specific hardware device when running my universal app? Whenever I rebuild and test, iPhone 3 fires up and I have to switch over to iPad and rotate the device.
Annoying.
Project > Edit Project Settings > Targeted Device Family > iPad
I finally solved this problem myself.
First, install new version of xCode, which is xCode 4.
Then set project scheme to iphone simulator and run app in xCode several times.
And re-install xCode 3 and the problem will be gone away!

No iPad simulator in Xcode 3.2 beta 5

I installed Xcode 3.2 beta 5 and I could not find iPad Simulator. Where do I find it?
You are looking for the program iPhone Simulator.
If not, you can test your website in Safari on iPad using the iPhone Simulator (Hardware -> Device -> iPad).
Above is from Technical Note TN2262
If you can't find it via searchlight, than try looking in /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator
After you install the SDK successfully, Run Xcode and create a new project. Select iPad for product.
When you create an iPhone project for iPhone OS 3.2, you will see that every time you Build and Run it, it appears in the iPad simulator instead of the iPhone simulato
There is not much too see when you run the simulator without a project
Go to spotlight and search iOS Simulator. You run that and up pops an iPhone simulator, go to Hardware > Device and change it to an iPad
The iOS Simulator is in Mac HD > Developer > Platforms > iPhoneSimulator.platform > Developer > Applications > (here)
Nicely squirrelled away
Try creating an iPad project and ask to launch it in the simulator.
When running, go to the dock, right click on the icon and select "options".
In the "Options" menu is "Reveal in Finder", which will show you where the simulator currently lives.
Also be aware that the iPhone and iPad simulator are the same application, in the menu for the iPhone Simulator (the actual name of the app) you can select which device you want to simulate (though XCode will automatically switch this for you when you run in debug).
Perhaps this pertains,
From Xcode release notes found under the download selection:
Known Issues in Xcode 5 developer preview
Simulator
There is no iPad simulator support in this seed.

iPhone simulator running invisible

iPhone simulator is running on my Mac but it's not showing the simulator. Two days back I had installed the Mac OS X 10.5.6 update. Xcode is launching the aplication in simulator, and it's running, as I can see the outputs on the gdb console window. But the simulator is not shown.
Try to remove ~/Library/Preferences/com.apple.iphonesimulator.plist
Had the same issue. The simulator was running somewhere way off screen. Could see it using expose, but couldn't move it.
Rather than using "Detect Displays", which didn't work for me, I changed the screen resolution and that popped it back into place.
Have you previously had an external monitor connected? Perhaps Mac OS X saved the simulator window off-screen the last time it was run?
In the System Preferences, select Displays and click the "Detect Displays" button while the simulator is running. That should force the simulator window to appear on-screen.
Nothing worked except the good old IT joke, Turn it off & on again! (Completely restarting the whole machine worked for me).