@@ -19,7 +19,7 @@ void main() {
1919 // print(Process.runSync('env', []).stdout);
2020
2121 print ("Running the command..." );
22- final process = await Process .start (
22+ final result = await Process .run (
2323 "sh" ,
2424 [
2525 "-c" ,
@@ -32,18 +32,19 @@ void main() {
3232 "com.flutterbountyhunters.deeplinks.example" ,
3333 ],
3434 );
35- process.stdout.transform (utf8.decoder).listen ((data) {
36- print ("STDOUT:\n $data " );
37- });
38- process.stderr.transform (utf8.decoder).listen ((data) {
39- print ("STDERR:\n $data " );
40- });
41- print ("The process started..." );
42- print ("Closing stdin" );
43- process.stdin.close ();
44- print ("Waiting for exit code..." );
45- final exitCode = await process.exitCode;
46- print ("The xcrun call returned with exit code: $exitCode " );
35+ // process.stdout.transform(utf8.decoder).listen((data) {
36+ // print("STDOUT:\n$data");
37+ // });
38+ // process.stderr.transform(utf8.decoder).listen((data) {
39+ // print("STDERR:\n$data");
40+ // });
41+ // print("The process started...");
42+ // print("Closing stdin");
43+ // process.stdin.close();
44+ // print("Waiting for exit code...");
45+ // final exitCode = await process.exitCode;
46+ // print("The xcrun call returned with exit code: $exitCode");
47+ print ("The xcrun call returned with exit code: ${result .exitCode }" );
4748 });
4849
4950 // testDeepLinkIosAppLaunch(
0 commit comments