Fix simctl race (#10757)

* remove usages of booted

* fix
This commit is contained in:
xster 2017-06-15 18:31:10 -07:00 committed by GitHub
parent 432ffde52e
commit e56c8850ce

View File

@ -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<Null> _sideloadUpdatedAssetsForInstalledApplicationBundle(ApplicationPackage app) =>