We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ff4693 commit 0249e57Copy full SHA for 0249e57
lib/iphone-simulator-xcode-7.ts
@@ -14,7 +14,7 @@ var $ = require("NodObjC");
14
15
export class XCode7Simulator implements ISimulator {
16
private static DEVICE_IDENTIFIER_PREFIX = "com.apple.CoreSimulator.SimDeviceType";
17
- private static DEFAULT_DEVICE_NAME = "iPhone-4s";
+ private static DEFAULT_DEVICE_NAME = "iPhone 6";
18
19
private simctl: ISimctl = null;
20
@@ -82,6 +82,10 @@ export class XCode7Simulator implements ISimulator {
82
}
83
});
84
85
+ if(!result) {
86
+ result = _.find(devices, (device: IDevice) => device.name === XCode7Simulator.DEFAULT_DEVICE_NAME);
87
+ }
88
+
89
if(!result) {
90
let sortedDevices = _.sortBy(devices, (device) => device.runtimeVersion);
91
result = _.last(sortedDevices);
0 commit comments