Skip to content

Commit 9c74fd5

Browse files
committed
Fixes #183 - ios-sim showdevicetypes does not list all targets
1 parent e51226b commit 9c74fd5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ var lib = {
289289

290290
for (var deviceName in druntimes) {
291291
var runtimes = druntimes[ deviceName ];
292+
293+
if (!(deviceName in name_id_map)) {
294+
continue;
295+
}
296+
292297
runtimes.forEach(function(runtime){
293298
// remove "iOS" prefix in runtime, remove prefix "com.apple.CoreSimulator.SimDeviceType." in id
294299
console.log(util.format("%s, %s", name_id_map[ deviceName ].replace(/^com.apple.CoreSimulator.SimDeviceType./, ''), runtime.replace(/^iOS /, '')));

0 commit comments

Comments
 (0)