@@ -68,25 +68,32 @@ void main() {
6868 // ["-c", "xcrun simctl terminate booted '$appBundleId'"],
6969 // );
7070
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 }" );
7976
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");
9097 });
9198
9299 // testDeepLinkIosAppLaunch(
0 commit comments