Skip to content

Crash in Add to App when using local engine during PlatformViewIOS::SetApplicationLocale #176478

@vashworth

Description

@vashworth

Steps to reproduce

  1. Follow instructions to set up an add to app module:

https://docs.flutter.dev/add-to-app/ios/project-setup

  1. Build the module with local engine
  2. Setup a native app and embed flutter:

https://docs.flutter.dev/add-to-app/ios/add-flutter-screen#if-you-cant-directly-make-flutterappdelegate-a-subclass

Expected results

App should launch

Actual results

App crashes on launch with:

Image

Looks like owner_controller_ is null

Code sample

Use the generated vanilla module

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel [user-branch], 3.37.0-1.0.pre-401, on macOS 15.7 24G222 darwin-arm64, locale en)
    ! Flutter version 3.37.0-1.0.pre-401 on channel [user-branch] at 
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.0)
[✓] Chrome - develop for the web
[✓] Connected device (5 available)
[✓] Network resources

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: existing-appsIntegration with existing apps via the add-to-app flowc: crashStack traces logged to the consolec: regressionIt was better in the past than it is nowplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions