Xcode 4 - IOS - Simulator not available as build target - xcode4

I have a weird issue... I'm unable to find the simulator as a device in order to test my application. Anyone have any idea how to fix it? In a new project, it is available though.
Regards,
EZFrag

Here's what happened to me ... when I updated to the latest version of XCode (4.3.2) I didn't bother to uninstall the previous version. I mistakenly opened my iOS 5.1 targeted project in the older version of XCode that does not know about 5.1 and as a result the simulator was not available. So i would check for the following:
See which version of XCode you're currently running
Try checking your iOS Deployment Target ... (Targets -> Deployment). If iOS 5.1 is selected change it to iOS 5.0 (the simulator will show up immediately)

In additional to G.Bickham's answer, please make sure the iOS Simulator is downloaded.
To verify the download status, go to Xcode's Preferences > Downloads > Components > iOS Simulator

Related

How do I change the iOS version for the Simulator?

Environment: Version 8.2 beta (8C30a)
My schema list only devices.
How do I change the iOS version in simulator?
I can see the available iOS Simulators...
...but they're not listed in the schema list.
Nor is their a way to discriminate amongst the iOS versions within schema manager.
The list of available simulators is dictated by three factors:
It will not show you simulators whose iOS version is prior to that of your current app's deployment target. If you want to see some recent, prior iOS simulators, make sure your app's deployment target is set accordingly.
If you go to Xcode "Preferences" - "Components", you can confirm which iOS simulators are installed on your machine.
In Xcode's "Devices" window (shift+command+2), as shown in the snapshot in your original question, you can configure particular simulator devices for your Xcode environment.
Open your xcode and press command + shift + 2.
Click on left bottom + button and your new simulator with required iOS version.
Click create, now you are ready to use the new simulator.
After adding the #availability & #availability flags which allowed me to get a successful compiled under and older distribution target, I noticed that the iOSes came back:

xcode7 not showing simulator iOS 9.0 destination options

Installed the Xcode 7 beta. Can't run any code because Xcode only seems to allow me to choose "iOS Device" destination and none of the sim devices I would normally expect. The project is set to iOS 9.0 target and Universal. And it's a basic, new project.
Here's what I tried:
Changing the target to iOS 8.0, then I see sim devices. But I want to run iOS 9.0
Xcode Menu > Preferences > Downloads > only see iOS 8.3, 8.2 downloadable... don't see mention of iOS 9.0
Xcode Menu > Open Developer Tools. See option for iOS Simulator and iOS Simulator (Watch). If I open iOS Simulator (not the watch), it opens up iOS Simulator 9.0 but running a watch
So looks like the iOS 9 simulator is installed but only for the watch. Odd.
Xcode Menu > Preferences > Locations > switched Command Line Tools to Xcode 7.0
OK found it... go to window > devices, hit "+" there and add an iOS 9.0 simulator. Weird... don't remember ever having to do this before (the simulators for all the iOS version / physical device types) just were there automatically.
if your project deployment target is set to above 9.0, then you won't be able to see the list of simulators. You need to change the Xcode project deployment target to 8.0.
Found Solution,
Go to ~/Library/Developer/CoreSimulator and delete "devices" folder, And restart Xcode, Now you can see all simulators.

Why do the C4 github examples lack support for an iPad simulator?

I have recently downloaded the testScrollView and WalkCycle examples from https://github.com/C4Code, but the dropdown window in the topmost toolbar lacks the option to select iPad simulator as the target device. Do I have to have something enabled in order for this menu to display correctly, or is this an issue of incompatibility between C4/XCode versions?
I recently upgraded to iOS 6, so all the projects I build and put up online will be targeted for iOS 6.0 simulator.
Check the following link, the answer there will show you how to change your settings so that it builds for the iOS 5.1 simulator:
Xcode 4 - IOS - Simulator not available as build target

Submit App to Apple without the latest Xcode version

A read similar questions but related to Beta version of Xcode, my doubt is wired to the last version of Xcode (4.3) that seems to be too buggy at the moment!
I rather use Xcode 4.2 but I'm not sure I can submit apps with this version! Is the last version of Xcode a requirement to send app to Apple ?
Where I can read something about that ? Apple documentation didn't help me.
You can still submit apps with xCode 4.2 . Only beta version of xCode cannot submit apps.

How to use iOS SDK 4.2 with Xcode 4.0.2

I installed Xcode4.0.2 yesterday and attempted to build and run a project developed by someone else, who was using an older version of Xcode (3.2.5) and iOS 4.2.
By default it seems, Xcode sets the project's "Base SDK" to 'Latest iOS (iOS 4.3)'. When I try to change that, my only iOS SDK options are "iOS 4.3" or "Latest iOS (iOS 4.3)". On my machine (Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs) I have "iPhoneSimulator4.2.sdk", as well as one for 3.2, 4.0 and 4.1.
In the Base SDK dialog, I tried choosing "Other..." to set the SDK to something other than the 4.3 options listed. Instead of getting a list of additional installed SDKs I get a text area where I need to manually enter an SDK. I tried "iOS 4.2" but I don't believe that worked.
Why isn't the list of available SDKs being populated with all the ones on my machine, and how can I set the SDK to 4.2?
Thanks!
Mat
You will want to select latest SDK, and then if you want the product to work on an earlier version you will want to select iOS Deployment Target, you can go all the way back to 3.0.

Resources