@@ -68,25 +68,32 @@ void main() {
68
68
// ["-c", "xcrun simctl terminate booted '$appBundleId'"],
69
69
// );
70
70
71
- final script = '''
72
- #!/bin/bash
73
- xcrun simctl terminate booted $appBundleId
74
- ''' ;
75
- final tempFile = File ('/tmp/temp_script.sh' );
76
- await tempFile.writeAsString (script);
77
- await Process .run ('chmod' , ['+x' , tempFile.path]);
78
- final process = await Process .start ('/bin/bash' , [tempFile.path]);
71
+ final result = await Process .run (
72
+ "sh" ,
73
+ ["-c" , "xcrun simctl terminate booted '$appBundleId '" ],
74
+ );
75
+ print ("Exit code: ${result .exitCode }" );
79
76
80
- print ("terminate command process was started" );
81
-
82
- process.stdin.close ();
83
-
84
- stdout.addStream (process.stdout);
85
- stderr.addStream (process.stderr);
86
-
87
- print ("Waiting for exit code..." );
88
- final exitCode = await process.exitCode;
89
- print ("Killed app - exit code: $exitCode " );
77
+ // CI Timeout
78
+ // final script = '''
79
+ // #!/bin/bash
80
+ // xcrun simctl terminate booted $appBundleId
81
+ // ''';
82
+ // final tempFile = File('/tmp/temp_script.sh');
83
+ // await tempFile.writeAsString(script);
84
+ // await Process.run('chmod', ['+x', tempFile.path]);
85
+ // final process = await Process.start('/bin/bash', [tempFile.path]);
86
+ //
87
+ // print("terminate command process was started");
88
+ //
89
+ // process.stdin.close();
90
+ //
91
+ // stdout.addStream(process.stdout);
92
+ // stderr.addStream(process.stderr);
93
+ //
94
+ // print("Waiting for exit code...");
95
+ // final exitCode = await process.exitCode;
96
+ // print("Killed app - exit code: $exitCode");
90
97
});
91
98
92
99
// testDeepLinkIosAppLaunch(
0 commit comments