Skip to content

Commit f73c1f8

Browse files
Working on iOS GitHub CI
1 parent 5ca2c76 commit f73c1f8

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

packages/flutter_test_runners/example_deep_links/test_driver/deep_link_ios_test.dart

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,20 @@ void main() {
6262
// ["simctl", "terminate", "booted", "'$appBundleId'"],
6363
// );
6464

65-
final process = await Process.start(
66-
"sh",
67-
["-c", "xcrun simctl terminate booted '$appBundleId'"],
68-
);
65+
// CI Timeout
66+
// final process = await Process.start(
67+
// "sh",
68+
// ["-c", "xcrun simctl terminate booted '$appBundleId'"],
69+
// );
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]);
6979

7080
print("terminate command process was started");
7181

0 commit comments

Comments
 (0)