Skip to content

Commit 14d9012

Browse files
Trying to run command without grep to see if that makes a difference
1 parent e6b448e commit 14d9012

File tree

1 file changed

+8
-0
lines changed
  • packages/flutter_test_runners/lib/src/platform_comms/ios

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Xcrun {
99
/// A return value of `true` doesn't mean the app is visible. The app might
1010
/// be in the background, but still in memory.
1111
static Future<bool> isAppRunning(String appBundleId) async {
12+
print("isAppRunning() - $appBundleId");
1213
// final result = await Process.run(
1314
// "sh",
1415
// [
@@ -23,6 +24,13 @@ class Xcrun {
2324
// "xcrun simctl spawn booted launchctl list | grep \"$appBundleId\"",
2425
// ]);
2526

27+
print("Trying command through shell - no grep...");
28+
final result = await _runInShell([
29+
"xcrun simctl spawn booted launchctl list",
30+
]);
31+
print("Done with command without grep");
32+
33+
print("Trying command through shell with '| grep'...");
2634
final result = await _runInShell([
2735
"xcrun simctl spawn booted launchctl list | grep \"$appBundleId\"",
2836
]);

0 commit comments

Comments
 (0)