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.
Related
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:
I have downloaded the xcode5_GM_seed and install it, but I cannot find iOS7 simulator in components.
Where can I find iOS 7 simulator?
XCode 5 comes with iOS 7 sdk and simulator automatically. However, since iOS 7 is not supported in old "iPhone" and supported in "iPhone Retina..." and "iPad.." so you need to select appropriate iOS simulator in your project... (your old/existing projects seems to be selecting to "iPhone" simulator)
Since iOS 7 does not support non-retina devices, you need to select one of the retina devices to see iOS7 simulator option.
If you can't find a simulator version you're looking for, chances are that you need to download it from the components section. Navigate to Preferences → Downloads and make sure you download all the simulator builds that you may need.
In Xcode preferences > downloads. But until the OS is released, you will need a paid ios developer account.
For Xcode 6:
In iOS Simulator, go to Hardware | Device | Manage Devices...
Click the + in the bottom left and choose whatever Simulator you want.
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
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
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.