Skip to content

Commit f70fc99

Browse files
Working on iOS GitHub CI
1 parent 1a8c0f2 commit f70fc99

File tree

1 file changed

+9
-4
lines changed
  • packages/flutter_test_runners/lib/src/platform_comms/ios

1 file changed

+9
-4
lines changed

packages/flutter_test_runners/lib/src/platform_comms/ios/xcrun.dart

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,17 @@ class Xcrun {
121121

122122
/// Kills the app with the given [appBundleId] ID, e.g., `com.acme.myapp`.
123123
static Future<void> killApp(String appBundleId) async {
124-
// final result = await _runInShell(["xcrun", "simctl", "terminate", "booted", appBundleId]);
124+
// final result = await Process.run(
125+
// "xcrun",
126+
// ["simctl", "terminate", "booted", appBundleId],
127+
// runInShell: true,
128+
// );
129+
125130
final result = await Process.run(
126-
"xcrun",
127-
["simctl", "terminate", "booted", appBundleId],
128-
runInShell: true,
131+
"sh",
132+
["-c", "xcrun simctl terminate booted $appBundleId"],
129133
);
134+
130135
print("Killed app - exit code: ${result.exitCode}");
131136
}
132137

0 commit comments

Comments
 (0)