Skip to content

Commit 08b78ea

Browse files
committed
Add support for Xcode 11
1 parent 2bb5986 commit 08b78ea

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

applesimutils/applesimutils.xcodeproj/xcshareddata/xcschemes/applesimutils.xcscheme

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
3230
<MacroExpansion>
3331
<BuildableReference
3432
BuildableIdentifier = "primary"
@@ -38,8 +36,8 @@
3836
ReferencedContainer = "container:applesimutils.xcodeproj">
3937
</BuildableReference>
4038
</MacroExpansion>
41-
<AdditionalOptions>
42-
</AdditionalOptions>
39+
<Testables>
40+
</Testables>
4341
</TestAction>
4442
<LaunchAction
4543
buildConfiguration = "Debug"
@@ -67,24 +65,24 @@
6765
isEnabled = "NO">
6866
</CommandLineArgument>
6967
<CommandLineArgument
70-
argument = "--byId &quot;81D58764-BF68-4B18-BECD-BE407B921693&quot;"
68+
argument = "--byId &quot;3C331CD3-736F-4EC4-932D-288FCF5C8924&quot;"
7169
isEnabled = "NO">
7270
</CommandLineArgument>
7371
<CommandLineArgument
7472
argument = "--byType &quot;iPhone Xs Max&quot;"
75-
isEnabled = "YES">
73+
isEnabled = "NO">
7674
</CommandLineArgument>
7775
<CommandLineArgument
7876
argument = "--byOS &quot;12.2&quot;"
79-
isEnabled = "YES">
77+
isEnabled = "NO">
8078
</CommandLineArgument>
8179
<CommandLineArgument
8280
argument = "--byName &quot;iPhone 8 Plus&quot;"
8381
isEnabled = "NO">
8482
</CommandLineArgument>
8583
<CommandLineArgument
8684
argument = "--bundle &quot;com.wix.PermissionsTest&quot;"
87-
isEnabled = "YES">
85+
isEnabled = "NO">
8886
</CommandLineArgument>
8987
<CommandLineArgument
9088
argument = "--clearKeychain"
@@ -96,15 +94,15 @@
9694
</CommandLineArgument>
9795
<CommandLineArgument
9896
argument = "--setPermissions &quot;location=never, notifications=YES&quot;"
99-
isEnabled = "YES">
97+
isEnabled = "NO">
10098
</CommandLineArgument>
10199
<CommandLineArgument
102100
argument = "--list &quot;iPhone 8 Plus, OS=iOS 11.0&quot;"
103101
isEnabled = "NO">
104102
</CommandLineArgument>
105103
<CommandLineArgument
106104
argument = "--list"
107-
isEnabled = "NO">
105+
isEnabled = "YES">
108106
</CommandLineArgument>
109107
<CommandLineArgument
110108
argument = "--restartSB"
@@ -131,8 +129,6 @@
131129
isEnabled = "NO">
132130
</CommandLineArgument>
133131
</CommandLineArguments>
134-
<AdditionalOptions>
135-
</AdditionalOptions>
136132
</LaunchAction>
137133
<ProfileAction
138134
buildConfiguration = "Release"

applesimutils/applesimutils/main.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static void restartSpringBoard(NSString* simulatorId)
8989
deviceTypeMaps[obj[@"identifier"]] = obj;
9090
}];
9191

92-
NSPredicate* availabilityPredicate = [NSPredicate predicateWithFormat:@"availability == \"(available)\" OR isAvailable == \"YES\""];
92+
NSPredicate* availabilityPredicate = [NSPredicate predicateWithFormat:@"availability == \"(available)\" OR isAvailable == \"YES\" OR isAvailable == 1"];
9393

9494
NSArray* runtimes = [list[@"runtimes"] filteredArrayUsingPredicate:availabilityPredicate];
9595
NSDictionary* devices = list[@"devices"];

0 commit comments

Comments
 (0)