IOS Simulator, listed twice in the Xcode launch address list

Xcode shows duplicate entries in the launch destination list for each iOS Simulator device.

Screenshot with launch locations:
enter image description here

Screenshot from the "Devices" menu:
enter image description here

I tried to completely close and open Xcode, and this did not solve the problem. Rebooting also did not solve the problem.

I added the iOS 7.1 SDK to the Xcode.app package.

+10
xcode ios-simulator
Nov 07 '14 at 22:01
source share
4 answers

I suspect that the problem will disappear if you restart the service:

Close Xcode, Tools and iOS Simulator, and then run this in Terminal.app:

killall -9 com.apple.CoreSimulator.CoreSimulatorService 

I did not see such a problem until the moment when the device itself is really duplicated in the launch destination list. Other reports were that there were actually duplicate devices (with unique UDIDs), but in your case you see duplicates of the same device.

If the problem continues to play, enable debug logging:

 defaults write com.apple.iphonesimulator DebugLogging -bool YES defaults write com.apple.CoreSimulator DebugLogging -bool YES 

Reproduce the problem with the debugging protocol enabled, and then generate an error report at http://bugreport.apple.com , including ~ / Library / Logs / CoreSimulator / *. Log and /var/log/system.log.

If you have an idea of ​​how you got into this condition, please share it.

EDIT:

Based on the discussion in the comments, the problem was caused by the addition of the iOS 7.1 SDK (and not the simulator SDK, device SDK). This is not a supported configuration, but it is certainly strange that this caused this problem. Please note that you should always build against the latest SDK and just set the deployment target to the minimum version you want to deploy.

+6
Nov 08 '14 at 0:17
source share
β€” -

I also came across this problem, because over time I manually (through Xcode) installed various additional iOS simulators.

So, I really wanted to get rid of the old and outdated version of the simulator.

  • quit Xcode and iOS Simulator

  • sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

  • rm -rf ~/Library/Developer/CoreSimulator/Devices

  • reopen Xcode

+5
Sep 18 '15 at 7:32
source share

To change and rename your simulators: In xCode, go to Window β†’ Devices and click plus in the bottom corner and add the simulators you want, or minus to delete.

+4
Nov 07 '14 at 22:06
source share

I don’t know why this is happening, but these UDID-like strings can refer to the directory identifiers for your applications after they are installed in the simulator.

+2
Nov 07 '14 at
source share



All Articles