iphone simulator not showing in xcode 4.2? - iphone

I have been using xcode 4.2 for last 3 months. For last two days it is not showing iPhone simulator .But when we change the device option in iOS simulator to retina display it is showing the simulator .i didn't change any settings of xcode.

As I experienced, in Xcode in the circumtances when the target of the Simulator is iPad but your sample code is in iPhone or the sample code(project) you are trying to compile has been compiled in an old version of iOS (or Xcode) the Simulator doesn't give response. But it still compiles the project and saves it to the main page of iPhone(iPad) simulator.. What you need to do is just compile an iOS 5 project and from main page see your app in Simulator

Related

Xcode 5 iPhone app on iPad simulator

I've installed Xcode 5 alongside Xcode 4 so I can build for both iOS6 and 7 SDKs.
I have a working iPhone App that, when I load it in Xcode 4 and build it to run on the iPad simulator it shows up with the 1x/2x button in the bottom right corner of the screen indicating that this is an iPhone App installed on an iPad.
When I do the same thing in Xcode 5, however, it appears that it isn't installing it on the iOS7 iPad simulator as an iPhone app because I don't see the 1x/2x button in the corner, and things are laid out slightly differently.
Again, this is the exact same Xcode project (actually it's a workspace) opened in Xcode 4 and built for an iPad simulator and opened in Xcode 5 and build for an iPad simulator.
Does anybody have any ideas on how to get an iPhone app to run as such on an iOS7 iPad simulator? Or why this might be happening?
iOS 7 uses the iPhone's retina artwork and so always appears in x2 format.

Why my Xcode4.5 doesnt have a iphoneretinasimulator with 4 inch?

I have downloaded xcode 4.5 from ios dev center.(dnt know is it the way).I got a dmg file.when i clicked on it to install it has only one xcode setup is there(nothing like samples,simulator folders which normally has).i inatalled it run my application .but when i got the simulator it has hardware options as ipad,ipad retina,iphone,iphone retina3.5,iphone retina 4 inch.only.the normal iphone simulator has the same screen reselution as 320,480.so the retina display has only the changed reselution screen.Is it correct.Can any body used this can guide me?
If you mean that there is no low resolution Simulator, thats right. If you want a smaller Simulator, you can type CMD-3.

How to switch from Xcode 4.1 to 4.5 for iOS 6.0

I just moved from Xcode 4.1 to 4.5 in order to supporting IOS version 6.0.
I modified launch image as 640x1136 pixels and Base SDK is iOS 6.0.
The problem is when I launch the app it throws SIGABRT on main.m and I added exception breakpoint to get more information but It gave breakpoint 1.1 on the same line of the implementation.
However I have noticed that I got a new warning with Xcode 4.5. Warning and Code are written below. Thanks for help.
Warning:
Semantic Issue: 'CountrySettingsViewController' may not respond to 'initWithTitle'
Code:
CountrySettingViewController *countrySettingView = [[[CountrySettingViewController alloc] initWithTitle:NSLocalizedString(#"selectCountry",#"Select the country title")]retain];
I'm not yet ready to jump to xcode 4.5. - because, then a lot of old projects will have to be recompiled e.t.c.
In order to support iphone 5 display, I simply made everything autoresizing, extra checking for iphone 5 display (to set corresponding image), and added iPhone 5 splash screen image. Compiling from 4.4.1, and on iPhone 5 it will look ok.
I then copy installed application from 5.1. simulator to 6.0 simulator, and launch 6.0 simulator, to check how it will look on iPhone 5 (while I don't yet have any iPhone 5 to test).
Hope that helps.
(I have 4.4.1. sdk and 4.5. sdk installed)
But about that error -
is this "initWithTitle" function declared in .h file also? Or else other classes will not see it (even if it works).
Finally, I sorted out my problem from the following answer in link:
iPhone with iOS 6 and Xcode 4.2 issue

Setting Xcode's target to iPhone NOT iPad

I just upgraded to iPhone SDK 3.2 Beta 4. Since doing so, I have not been able to get the app to launch in the iPhone simulator - it keeps launching in the iPad simulator. I have tried option-clicking the drop-down menu in the top left-corner of Xcode and setting 'Active Executable' to iPhone simulator 3.1.3 but it keeps going back to iPad simulator instead.
What gives? I have no interest in my app running on the iPad and I don't want to test it in the 2X mode in the simulator.
Thanks,
You can't really launch an iPhone app in 3.2.x - sometimes it will pop up - but basically right now it is only for iPad development.
Update for release version of Simulator.
First of all, the title of this question doesn't match the description: Xcode target isn't the same as the simulator hardware device.
If you are writing an app targeting 3.2, it can run on both iPad (using OS 3.2) and lower OS versions on the iPhone. You do this by setting the Base SDK to iPhone Device 3.2, the Targeted Device Family to iPhone/iPad, and the iPhone OS Deployment Target to 3.1 (lower than 3.2).
The iPhone simulator has a menu option for Hardware->Device, which can be set to iPhone or iPad. However, you can only run a 3.2 SDK target in iPad mode, and a Universal app that supports iPad can only use the 3.2 SDK to build.
You can of course set the simulator to iPhone mode and launch your app from Springboard, but that will lose the debugger connection. Switching mode during installation of your app will cause it to crash.
So the short answer is still the same: you can't run a Universal iPad app in the iPhone mode simulator while debugging.
Upper-left corner of the IDE find a dropdown list of Simulator versions - flipped to 3.2 - try to put it back to 3.1.3
and relaunch your app.
This was driving me nuts too, but the answer is right here:
http://quatermain.tumblr.com/post/517122761/running-universal-ipad-iphone-apps-in-the-simulator
In short, tell Xcode to Build for the 3.2 SDK, then switch the build menu to the 3.1 SDK and tell Xcode to Run the app. Presto, the app starts in the iPhone simulator!
From Apple's documentation: "iPhone OS 3.2 does not support iPhone and iPod touch devices. It runs only on iPad." There's no way to target 3.2 for iPhone, so there's no Simulator. Ergo, you'll have to wait for iOS 4. Fortunately, that's only 4 days away now... of course it won't support the first generation of iPhone devices, but for all other iPhone users it's a free upgrade. Not sure about iPod Touches.
You should be able to change your target platform in your Project Settings.
Changing the target platform and device makes no difference. It always launches the iPad simulator.
If you switch the simulator to iPhone mode, the app just disappears.
This dev environment is a mess.
Short answer: You can change the hardware setting in the simulator. Hardware->Device
Go to Project
Set Active Executable
There are 2 options: Ipad Simulator 3.2 or Iphone Simulator 4.0.
If you choose the Iphone simulator, then it will launch Iphone simulator.
If you choose the Ipad simulator, then it will launch Ipad simulator.
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.