twostraws / ControlRoom

A macOS app to control the Xcode Simulator.
MIT License
5.8k stars 306 forks source link

Fix JSON Parsing issue for Xcode Version 11.3.1 (11C504) & Simulator 11.3.1 #11

Closed NeilsUltimateLab closed 4 years ago

NeilsUltimateLab commented 4 years ago

Xcode Version 11.3.1 (11C504) & Simulator Version 11.3.1 (SimulatorApp-912.5.1 SimulatorKit-570.3 CoreSimulator-681.17.2).

For macOSCatalina 10.15.3 (19D76). I am getting following response for SimCtl Device List.

{
  "devices" : {
    "com.apple.CoreSimulator.SimRuntime.tvOS-13-2" : [

    ],
    "com.apple.CoreSimulator.SimRuntime.iOS-13-1" : [

    ],
    "com.apple.CoreSimulator.SimRuntime.iOS-13-2" : [

    ],
    "com.apple.CoreSimulator.SimRuntime.iOS-11-0" : [
      {
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone 7",
        "udid" : "27B278C5-55E3-4D4B-A395-FD128A703BE6"
      },
      {
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone X iOS 11.0",
        "udid" : "73F4699E-8099-4C3C-B2D9-E1F627111EF7"
      }
    ],

Which is not having status, deviceTypeIdentifier, dataPath. So I made them optional.

Thanks for this great project.

davedelong commented 4 years ago

Thanks!