Reputation: 8943
I am trying to embed a Flutter module into iOS app. But when i tap the button that will show the FlutterViewController, a blank screen shows up and this is printed on the console:
Failed to find assets path for "flutter_assets"
[VERBOSE-2:engine.cc(111)] Engine run configuration was invalid.
[VERBOSE-2:FlutterViewController.mm(462)] Could not launch engine with configuration.
flutter: Observatory listening on http://127.0.0.1:54632/
I followed this tutorial https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps
I added a FLUTTER_ROOT to my build settings
I tried running the app with a FlutterAppDelegate
and also a FlutterViewController
My flutter doctor
says nothing is wrong.
Upvotes: 7
Views: 4566
Reputation: 8943
I solved it by changing to master channel and it solved.
flutter channel master
flutter build --ios
to force Flutter to re-generate the .ios folder.pod install
in my native iOS app.Upvotes: 3
Reputation: 21641
There are several ways this could happen that I've seen:
flutter_assets
folder completelyIt sounds like you're missing your flutter_assets
. Please follow the steps on the Add2App wiki.
I'm actively working on making this process easier - unfortunately, there are a lot of manual steps right now that are easy to get wrong.
Upvotes: 1