File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/flutter_test_runners/lib/src/platform_comms/ios Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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 ]);
You can’t perform that action at this time.
0 commit comments