From e56c8850ce66f4549512c61cd466f516e0ee9e4e Mon Sep 17 00:00:00 2001 From: xster Date: Thu, 15 Jun 2017 18:31:10 -0700 Subject: [PATCH] Fix simctl race (#10757) * remove usages of booted * fix --- packages/flutter_tools/lib/src/ios/simulators.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/lib/src/ios/simulators.dart b/packages/flutter_tools/lib/src/ios/simulators.dart index 02ec3ddda71..e5f37acf37d 100644 --- a/packages/flutter_tools/lib/src/ios/simulators.dart +++ b/packages/flutter_tools/lib/src/ios/simulators.dart @@ -474,7 +474,7 @@ class IOSSimulator extends Device { // Launch the updated application in the simulator. try { - SimControl.instance.launch(id, app.id, args); + await SimControl.instance.launch(id, app.id, args); } catch (error) { printError('$error'); return new LaunchResult.failed(); @@ -529,7 +529,7 @@ class IOSSimulator extends Device { throwToolExit('Could not find the built application bundle at ${bundle.path}.'); // Step 3: Install the updated bundle to the simulator. - SimControl.instance.install(id, fs.path.absolute(bundle.path)); + await SimControl.instance.install(id, fs.path.absolute(bundle.path)); } Future _sideloadUpdatedAssetsForInstalledApplicationBundle(ApplicationPackage app) =>