ios-control / ios-sim

Command-line application launcher for the iOS Simulator
Apache License 2.0
1.49k stars 253 forks source link

Custom simulators not appearing in showdevicetypes #274

Open ataylor32 opened 4 years ago

ataylor32 commented 4 years ago

Expected behavior

Running npx ios-sim showdevicetypes should show the devices that came with Xcode and the manually added devices.

Actual behavior.

It shows just the devices that came with Xcode.

Steps to reproduce the problem

  1. In Xcode, click the "Window" menu and choose "Devices and Simulators"
  2. Click "Simulators"
  3. Click the + in the bottom-left corner of the window
  4. Set the "Simulator Name" field to "iPhone SE"
  5. Set the "Device Type" dropdown menu to "iPhone SE (1st generation)"
  6. Set the "OS Version" dropdown menu to "iOS 13.5"
  7. Click the "Create" button
  8. Run npx ios-sim showdevicetypes and observe that the output has only one iPhone SE, which is iPhone-SE--2nd-generation-, 13.5

System Specs

$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.15.5 (19F101)
      Kernel Version: Darwin 19.5.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: Adam Taylor’s MacBook Pro
      User Name: Adam Taylor (adam)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 11 days 18:06

$ npx ios-sim --version             
ios-sim/9.0.0 darwin-x64 node-v12.14.0
$ xcodebuild -version
Xcode 11.5
Build version 11E608c
$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
$ node --version
v12.14.0