[ios] generate flx on first ios launch
diff --git a/packages/flutter_tools/lib/src/ios/simulators.dart b/packages/flutter_tools/lib/src/ios/simulators.dart index 8323201..fae2bda 100644 --- a/packages/flutter_tools/lib/src/ios/simulators.dart +++ b/packages/flutter_tools/lib/src/ios/simulators.dart
@@ -370,11 +370,15 @@ } Future<bool> _setupUpdatedApplicationBundle(ApplicationPackage app, Toolchain toolchain) async { - if (_applicationIsInstalledAndRunning(app)) { - return _sideloadUpdatedAssetsForInstalledApplicationBundle(app, toolchain); - } else { + bool sideloadResult = await _sideloadUpdatedAssetsForInstalledApplicationBundle(app, toolchain); + + if (!sideloadResult) + return false; + + if (!_applicationIsInstalledAndRunning(app)) return _buildAndInstallApplicationBundle(app); - } + + return true; } Future<bool> _buildAndInstallApplicationBundle(ApplicationPackage app) async {