Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

simulator name is shown with id instead of os name in Xcode 6.2

I've installed additional ios simulators(7.1) just after installing Xcode 6.2 and now the simulator names look like this:

enter image description here

How do I change the names?

like image 483
Stas Avatar asked Mar 26 '15 09:03

Stas


People also ask

How do I find my simulator ID in Xcode?

From XcodeOpen your simulator, choose Hardware - devices - manage devices. You will find the identifier in device information.

How do I show simulator in Xcode?

The basic way to open a list of simulators is to use Xcode -> Window -> Devices and Simulators. Here you can create and manage all available simulators.

How do I change the simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.

How do I select default simulator in Xcode?

Open the simulator by following these steps: Select File ▸ Open Simulator from the menu. Select the iOS 14.2 run time. Choose the Demo simulator.


2 Answers

Xcode uses the device version to disambiguate devices with the same name. If two devices have the same name and version number, it will show the devices' UDIDs.

You have 4 of each of all your device types, so I suspect that some of them are for the same iOS version. You should delete some of the duplicates. Check out

xcrun simctl list 

and

xcrun simctl delete 

or go to Windows>Devices in Xcode to delete or rename your devices.

like image 76
DanielG Avatar answered Sep 28 '22 11:09

DanielG


How to fix it

Xcode uses the device version to disambiguate devices with the same name. If two devices have the same name and version number, it will use the devices' UDIDs.

You have 4 of each of a bunch of devices (eg iPhone 5s). I suspect that some of them are for the same iOS version. You should delete some of the duplicates. Check out xcrun simctl list and xcrun simctl delete or use the device manager within Xcode.app (click on the "-" to delete a device).

How to just get back to a default state

# Ensure all possible clients of CoreSimulatorService are no longer running:  killall Xcode 2> /dev/null killall Instruments 2> /dev/null killall 'iOS Simulator' 2> /dev/null killall Simulator 2> /dev/null killall 'Simulator (Watch)' 2> /dev/null killall ibtoold 2> /dev/null killall simctl 2> /dev/null # There may be others  # Kill the service itself sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService  # Remove all the data and logs rm -rf ~/Library/*/CoreSimulator 

Why this might be happening:

CoreSimulatorService will monitor for the addition of new simulator runtimes in /Library/Developer/CoreSimulator/Profiles (eg, for when downloading them from Xcode -> Preferences -> Downloads). When installing a new runtime, CoreSimulatorService will create an initial set of devices for that runtime.

This problem arrises if there are multiple instances of CoreSimulatorService running at the same time. Each CoreSimulatorService instance will create its own set of devices (but its clients will only see that instances's sets at first). On subsequent launches (eg: after a reboot), both copies will be seen. One can get into a state where multiple copies of CoreSimulatorService are running at the same time due to testing beta versions of Xcode.app in the same login session as using the released Xcode.app or by having used Xcode.app before and after updating it through the App Store.

If you are aware of any other way that this bug might come about, please file a new radar at http://bugreport.apple.com

like image 30
Jeremy Huddleston Sequoia Avatar answered Sep 28 '22 11:09

Jeremy Huddleston Sequoia