Xcode simulator target iOS version names turned to hashes - ios

I'm on Xcode 6.3. I don't remember doing any special changes but after rebooting my macbook, target iOS version names were like this;
Does anyone know how to quickly fix this? Otherwise my last resort will be deleting all simulators and reinstalling them.

There are duplicated simulators installed. In Xcode just go to Window -> Devices and delete duplicated devices.

Related

Xcode 9.0 simulators "disappeared"

I recently installed Xcode 9.0 GM on my machine. I fired it up to play around and the only simulators I see in the scheme are iPhone 8, iPHone 8 Plus, and iPhone X. I clicked "Download Additional Simulators" thinking the solution would lie there.
I'm greeted with this screen, which is everything I previously had installed.
I dug around on the Apple Developer forum and found this post discussing a similar problem with a prior version of iOS. At the suggestion of one of the posters, I powered down my machine and booted it cold. I opened up Xcode 9.0 again and I have the same issue.
Any suggestions what I can get additional hardware to appear in my Xcode scheme? Thank you for reading.
In Xcode 10.3, I also lost all simulators but got them back by running
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
In case anyone else gets here and are in my situation, I just upgraded to Xcode 9.2 and the simulators were all missing, but quitting and relaunching Xcode restored them.
For me quitting and relaunching Xcode also didn't help. So I did the following 3 steps.
Three steps
Step 1:
Product -> Destination -> Download Simulators... Download the simulator(s) you need
Step 2:
Sometimes when you download the new simulator types, they don't automatically show in the list of possible simulators.
Product -> Destination -> Add Additional Simulators... Click the + button in the lower left hand corner, then Add Simulator Give it a name, device type, and the iOS version you just downloaded.
Step 3:
Set proper deployment target. If you have downloaded simulators of lower versions, set the deployment target to the same.
Now it should show up in your list of simulator devices!
Delete every single one of the simulators listed in the Devices and Simulators window, one by one, and then start over make new simulators. That always works for me. It's a good idea after any upgrade, in fact.
My question was originally answered, but I found a more efficient way to do it with fastlane. Within fastlane, there's a tool called snapshot. The usage is as follows from terminal:
fastlane snapshot reset_simulators
Warning: This will delete all your simulators and replace by new ones! This is useful, if you run into weird problems when running snapshot.

Xcode 9 doesn't have any simulator device

I just downloaded xcode 9 beta, but there is no simulator within it. Try to add new simulator but the create button doesn't work. Please help
By "no simulator within it" I mean there is option to build with simulator.
See
.
Also, the create button doesn't work
Go to Xcode Preferences -> Locations and go to the Derived Data location in Finder:
Just remove all contents from it, then right click on Xcode icon and quit it, and reopen it:
It is a simulator but you need to close Xcode 8 if you have it open and restart Xcode 9 beta.
This may happen due to multiple Xcode installed on machine or might be the deployment target is higher than the simulator OS version.
In order to resolve this navigate to following location :
Xcode > Preference > location > comindline Tool > change the xcode version
and decrease the deployment target.
You may have removed iOS Simulators when you cleaned up disk space. I think I may have used DaisyDisk to remove files when I ran out of space.
You can re-add simulators using the Devices & Simulators window. (Shift + Command + 2)
Delete the derived data, close all your running Xcodes and restart your computer. It just helped me.
Apart from the simulators not showing, my project's storyboard was messed up also after upgrading to XCode 9. I simply restarted XCode and voila! Did not have to delete derived files - though it would probably not hurt.
You can do the same that #badhan-ganesh suggests (cleaning derived data) using the Xcode keyboard shortcut to clean derived data:
shift+alt+cmd+k
If needed, you can clean the project using Xcode keyboard shortcut:
shift+cmd+k
After that, restart Xcode and simulators should be available again.
Having a higher deployment target than what is installed on your simualtors also causes this.
Ensure your Deployment Target version in Build Settings is also set to the desired version (and that you have that version of the respective simulator installed). Suppose, if that were set to 10.3 and I didn’t have an iOS 10.3 simulator installed, I wouldn’t be able to see any simulators. But because it’s set to 10.1, and I have 10.1 simulators installed, I can see them.
When my xcode updated to 9.4 I face the same problem at first time. After force quit and start again solve the problem for me.
If you upgraded Xcode then follow the steps
Delete derived data, Xcode-> Preferences -> Locations and select arrow symbol just before Advance button -> select all files and delete.
Quit Xcode
Quit Xcode from Dock
Open Xcode again.
:-)
Hope this will help you.
I have Xcode 8.3 and Xcode 9.1, I came to this post to find a solution to missing simulators after forced upgrade to 9.1...
I was about to do the suggestion to remove the entire DerivedData directory, lucky closing Xcode 9.1 and restarting it worked. Moreover, I had to close all simulator(s).
I had to rebuild app apps on simulator again.

iOS Simulators in Xcode 6.4 showing multiple versions and have long "id" in the name

I have Xcode 6.4 installed and I also have Xcode 7 beta installed. Recently I launched Xcode 6 and I showed multiple versions of the iOS simulators and they had long id/like uuid looking ids in the names. Some of them do not work. Has anyone seen this and does anyone have an idea of how to fix it. I have deleted beta. I have deleted and reinstalled Xcode 6 multiple times. I have uninstalled Xcode 6 using an app like app cleaner as well. I also have went and deleted via terminal the simulator at "/Library/Developer/CoreSimulator/Profiles/Runtimes ". I tried sudo /Developer/Library/uninstall-devtools --mode=all but I get command not found.
Xcode -> Window -> Devices menu (cmd+shift+2)
There you can manage all your devices including simulators.
The IDs are displayed when there are more than one simulator for the same device and iOS version: delete the duplicate entries and it will show the iOS version instead.
You can see them at this path: " ~/Library/Developer/CoreSimulator/Devices "
Try to delete all of them. then readd simulators from Devices window.
If you have more than one simulator of any device type with same version, Xcode behaves like this. For ex: three iPad 2 (iOS 8.4) simulator.
you can also use the fantastic tool snapshot
snapshot reset_simulators
is all you have to enter in your terminal and the simulators are rebuilt and clean afterwards.
Open this path " ~/Library/Developer/CoreSimulator/Devices " and remove all the devices in that path.
then open xcode-->windows -->devices-->
then remove all the duplicate devices then relaunch the xcode

iOS Simulators missing when deployment target set to 8.3

I'm still new to Xcode, but I've recently run into an issue that has me stumped. As best as I can tell, right after I updated to 10.10.3, and to Xcode 6.3, any new projects I create don't have an iOS Simulators available. If I change the Deployment Target back to 8.2 (from 8.3), they are once again available. But as long as I leave it set to a deployment target of 8.3, I can only see "iOS Device" and no iOS Simulators are listed.
I've tried deleting and reinstalling Xcode, but I'm still ending up with the same results. Anyone else having this issue, and or know of a fix for this?
I had a similar problem as the original poster (Bill Matthews). On my MacPro (Early 09), but not my MacBookAir - both running 10.10.3 and newly installed Xcode 8.3 (over the beta 3 version) - I could not get any simulators to show up, irrespective of the iOS build target. (The temporary workaround was debugging on a real device, after selecting it from the "Product" menu -> "Destination"->"Ineligible Devices"->{my iPhone}.)
I tried deleting the simulators in ~/Library/Developer, but could not reinstall them; the Preferences->Downloads->Components would show them as installed/checked off, even after reboot, despite being deleted. Same result even after deleting the components folder and ~/Library/Caches/com.apple.dt.Xcode/Downloads and reboot. Same result even after deleting all of ~/Library/Developer, unlike Bill Matthews (Mazel Tov!).
In an abundance of caution, I reinstalled 10.10.3 from the combo updater (not AppStore), then Xcode 8.3 from developer.apple.com (not AppStore).
That did the trick for me. YMMV.
I actually had the same problem. If you are using fastlane the easiest way is to use the following command.
fastlane snapshot reset_simulators
I was able to see the latest simulators afterwards.

Can't select iOS simulator in Xcode

I updated Xcode to the 6.1 version and now I don't understand why I can't select the simulator in the top left corner like in the previous version when I want to run my application. The only choice that appear is a general "iOS device".
Press "Window" and then "Devices", check if they appear there and if not - click the "+" icon in the lower left
Go to File -> Project Settings -> Info.
Change the deployment target to a lower or higher version.
Most probably you do not have a simulator installed for the current deployment target. You can do so by going to Xcode Preferences -> Downloads. In the Components section, you will see the options for downloading the simulators you already don't have.
Faced the same issue many times and found this solution. Hope this helps. :)
I finally found the solution. When I added a simulator in the devices menu (Shift+Cmd+2) I got this error: "Unable to determine SimDeviceSet, set_path=/Users/MyUser/Library/Developer/CoreSimulator/Devices"
I checked the directory and there was not the folder "CoreSimulator", so I created it. I restarted XCode and now there are all the iOS Simulators selectable for running my app.
Thank you all.
I suspect that you are having issues communicating with CoreSimualtorService due to renaming Xcode.app or similar. This is mentioned in the Xcode 6.0 and 6.1 release notes. Unfortunately, the only workaround at the moment is for you to rename it back or reboot.
Update:
Note that for current (as of this update) versions of Xcode (7.2+), renaming should work ok. For best results, only use one version of Xcode at a time. If you start another version of Xcode while one is running, the previous one will loose access to simulator devices. Restarting it will cause it to have access to the simulator devices (and of course the other one to stop). Basically, the last one wins.
I experienced same issue.My OS is 10.9.5. I solved this issue by downloading IOS simulator 7.1 from Xcode Preferences -> Downloads -> iOS 7.1 Simulator.
And then Windows -> Devices -> added simulator devices by clicking +.
Thanks.
Go to Window -> Devices and Simulators, check whether there is any Simulator listed. If no, add by clicking over "-" over the lower left corner. Or if devices are there but you are not able to see them in devices to be choose from, then check for deployment target that might not be compatible with Xcode simulators, set target according to your Xcode support and you will see the simulators list.
in my case, after delete xcuserdata from my folder, then simulate only have my mac without any other options. after search, I found in scheme setting, Run->Info->Executable without any app. Then I select my app in the project. then simulator all come back.

Resources