Skip to content

Commit 428ff22

Browse files
committed
Merge pull request #176 from dpogue/patch-1
Fix for Xcode 7 runtimes that don't have devices
2 parents 9ed4bcc + 087c73c commit 428ff22

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
@@ -263,6 +263,11 @@ var lib = {
263263
var list = [];
264264
for (var deviceName in druntimes) {
265265
var runtimes = druntimes[ deviceName ];
266+
267+
if (!(deviceName in name_id_map)) {
268+
continue;
269+
}
270+
266271
runtimes.forEach(function(runtime){
267272
// remove "iOS" prefix in runtime, remove prefix "com.apple.CoreSimulator.SimDeviceType." in id
268273
list.push(util.format("%s, %s", name_id_map[ deviceName ].replace(/^com.apple.CoreSimulator.SimDeviceType./, ''), runtime.replace(/^iOS /, '')));

0 commit comments

Comments
 (0)