mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Remove optimization that was trying to bypass build process for iOS sim. (#23268)
This optimization resulted in app still running with old kernel file. Fixes another source of https://github.com/flutter/flutter/issues/16604
This commit is contained in:
parent
dd789e645b
commit
be0dde4114
@ -360,22 +360,9 @@ class IOSSimulator extends Device {
|
||||
}
|
||||
}
|
||||
|
||||
Future<bool> _applicationIsInstalledAndRunning(ApplicationPackage app) async {
|
||||
final List<bool> criteria = await Future.wait<bool>(<Future<bool>>[
|
||||
isAppInstalled(app),
|
||||
exitsHappyAsync(<String>['/usr/bin/killall', 'Runner']),
|
||||
]);
|
||||
return criteria.reduce((bool a, bool b) => a && b);
|
||||
}
|
||||
|
||||
Future<void> _setupUpdatedApplicationBundle(ApplicationPackage app, BuildInfo buildInfo, String mainPath, bool usesTerminalUi) async {
|
||||
await _sideloadUpdatedAssetsForInstalledApplicationBundle(app, buildInfo, mainPath);
|
||||
|
||||
if (!await _applicationIsInstalledAndRunning(app))
|
||||
return _buildAndInstallApplicationBundle(app, buildInfo, mainPath, usesTerminalUi);
|
||||
}
|
||||
|
||||
Future<void> _buildAndInstallApplicationBundle(ApplicationPackage app, BuildInfo buildInfo, String mainPath, bool usesTerminalUi) async {
|
||||
// Step 1: Build the Xcode project.
|
||||
// The build mode for the simulator is always debug.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user