Closed kelvindart closed 7 years ago
I have just debugged this. The issue is because of the following line: https://github.com/phonegap/ios-sim/blob/master/src/lib.js#L329
list = fixSimCtlList(list);
The call to fixSimCtlList(...)
is unrequired. This references two properties in regards to the simulators: devicetypes
and devices
. We are concerned with the SDKs, not simulators at this point, so the call is unnecessary; list
is of the following format:
{
"runtimes": [
{
"buildversion": "15A372",
"availability": "(available)",
"name": "iOS 11.0",
"identifier": "com.apple.CoreSimulator.SimRuntime.iOS-11-0",
"version": "11.0"
},
{
"buildversion": "15J380",
"availability": "(available)",
"name": "tvOS 11.0",
"identifier": "com.apple.CoreSimulator.SimRuntime.tvOS-11-0",
"version": "11.0"
},
{
"buildversion": "15R372",
"availability": "(available)",
"name": "watchOS 4.0",
"identifier": "com.apple.CoreSimulator.SimRuntime.watchOS-4-0",
"version": "4.0"
}
]
}
I will raise a PR, and reference this bug.
Fixed in #221
Expected behavior
To be able to call the command without error, and have it return data listing installed SDKs.
Actual behavior.
Currently when you run the following command via ios-sim, it displays the error you see beneath the command:
Steps to reproduce the problem
ios-sim showsdks
.System Specs
Please run the commands below in your Terminal.app and include it in the issue. Check when done and include results below.
system_profiler SPSoftwareDataType
ios-sim --version
xcodebuild -version
xcode-select --print-path
node --version