I have versions of simulator start from 9.3 up to 10.3.1. It's very large amount of simulators, but almost all the time i use 3 of 4 of them.
So, the question is, does Xcode have the fastest way to run app on specific simulator? Maybe create keybindings or some script or framework can help me? Thanks.
In Xcode 9, you can Open up Xcode -> Window -> Devices and Simulators -> Simulators, and you can remove the ones you don't want from the run destinations list.
In earlier versions, you can just delete the ones that you don't want.
There is no way to assign keybindings to specific run destinations.
After almost 5 years of the question, Xcode 14 now has a Recent section in the Device panel:
Related
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.
I recently tried to run a simulation of a new iOS 7 app on Xcode 6.1.1 using my MacBook Pro during a visit to Indonesia. The app was based on AddMusic and made iOS 7 compatible. When I tried to run the simulator abroad iOS simulation targets available while testing in Australia had simply disappeared from the pulldown menu in Xcode. Moreover since I came home these simulators only reappeared when I removed, downloaded and reinstalled Xcode.
Until I reinstalled Xcode the only option Xcode offered was to run the app on an iOS device but I wasn't prepared to do this in front of clients without first being able to test a revision on a simulator.
Thankfully on this occasion I was able to demonstrate earlier versions I had installed on an iPhone 4 and iPhone 5 C before I left home. But it would be really good to know what I might be able to do to avoid this situation during my next visit abroad.
I suspect the issue may have been brought on by differences between my Internet connections at home and abroad.
Has anyone else experienced a similar problem that might be related ?
Top to your Right Click on
Window > Devices
You will see that no devices will be showing Do the following
Bottom Left
Click on the +
And then start adding your devices.
Just closing the projects from the File Menu, quitting Xcode and restarting Xcode worked for me
the version is the latest Xcode 7
Some things which might help you
Check deployment target in your project settings. Switching to lower versions of OS might help you get back all simulators.
Check your xcode version used in the command line tools. Go to Xcode -> Preferences -> Locations -> Command line tools
Quit Xcode and restart your system.
Hope these things help !!
I have installed new Xcode 6. In the image attached, you can see there are so many simulators of same version e.g iPad 2, iPad Air, iPhone 4S, iPhone 5 etc but in () you see they have different identifiers.
Whats the difference between different types of same simulator?
Is there a way where I can rename to make them more understandable.
Thank you
you got so many by copying old ones to the new xcode . which is not really supported.
therefore there is no way of renaming them
to get rid of them, deletion isn't enough. trash xcode, its prefs, shared data and THEN make a clean install
While copying Xcode 6 GM to the Applications folder I had options to 'Keep Both' or 'Replace'. I would like to confirm a few things before installing.
If I choose the option to 'Keep Both' will I be able to run Xcode 5 and Xcode 6 independently without any issues?
If I choose 'Replace' is there a way I could possibly return to Xcode 5?
Keep both or replace will not break anything. Pros of accepting keep both is that you will be able to test your app on ios 6.1 simulator and even ios 6.0 simulator, if you still need to support it.
If you choose Replace, you will be able to run Xcode 6 without any problem. And you should be able to install later Xcode 5 and run both in case you needed. If you choose Keep both, you should be able to run both without any problem. I chose replace and there were no problem at all. Hope it helps!
I've installed xcode 6 beta 4 and today all my old projects don't appear at the launch of xcode between recent projects (the list is empty instead). So i click directly in the project file and everything started.
My project is in Swift and, after a lot of strange errors, with some corrections i can build again the code and execute it in iOS Simulator and it works as i wish.
The big problems come when i try to run the project in my physical device (ipad Air and iPhone 4s both updated to iOS 8 beta 4).
When i run the project in my iPhone Xcode returns this runtime error:
And when i run the project in my iPad Air Xcode returns this error:
i've tryed a clean instalation of XCode and i've searched everywhere. I'm very frustrated because it works on iOS simulator and i don't know what to do with this kind of error, i don't know where searching or what searching for.
After a lot of tentative i've found a solution: i had to delete Derived Data. The steps are: in XCode Window -> Organizer -> Projects -> selected the interested project -> click the delete button in Derived Data
Deleting DerivedData is not enough - you have to delete ~/Library/Caches/com.apple.dt.Xcode* directories to prevent this one from happening. Do that with every beta upgrade.