Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find assets path for "Frameworks/App.framework/flutter_assets" #29974

Closed
melvinm99 opened this issue Mar 26, 2019 · 17 comments
Closed
Labels
waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@melvinm99
Copy link

Hi, I'm writing here to report a potential bug I've encountered building and running my app on iOS: it doesn't load any asset I provided. Assets are correctly defined, since on Android it builds ok. They get replaced with question marks or other icons as you can see in this screen:
error

The error in Xcode log is: Failed to find assets path for "flutter_assets".

I've tried both master and stable channel, getting the same error. Then, I switched to beta channel and now everything is ok (correct assets are loaded in the running app), so maybe it's a problem that has been solved in latest commits/releases.

Steps to Reproduce

flutter build ios --release

Logs

Failed to find assets path for "flutter_assets"
Engine run configuration was invalid.
Could not launch engine with configuration.

Flutter doctor and analyze where ok, sorry but now I don't have all the logs anymore since I switched the channel.

@hongliang211
Copy link

I have the same problem too

1 similar comment
@yxwandroid
Copy link

I have the same problem too

@CTaoWu
Copy link

CTaoWu commented May 30, 2019

I think your 'Script' is Missing!
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed

@escamoteur
Copy link
Contributor

Hi, could you please confirm if this problem still exists with the latest versions on stable or master?

Thanks a lot

@escamoteur escamoteur added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 24, 2019
@iapicca
Copy link
Contributor

iapicca commented Nov 7, 2019

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!

Thanks for your contribution.

@iapicca iapicca closed this as completed Nov 7, 2019
@aberror
Copy link

aberror commented Nov 19, 2019

The issue still exists, Environment:
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.15.1 19B88, locale zh-Hans-CN)
✗ Downloaded executables cannot execute on host.
See #6207 for more information

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2)
[✓] iOS tools - develop for iOS devices
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.39.2)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

@aberror
Copy link

aberror commented Nov 19, 2019

flutter pages failed to load, logs are below:
Failed to find assets path for "Frameworks/App.framework/flutter_assets"
[VERBOSE-2:engine.cc(118)] Engine run configuration was invalid.
[VERBOSE-2:FlutterEngine.mm(308)] Could not launch engine with configuration.

@iapicca
Copy link
Contributor

iapicca commented Dec 12, 2019

Hi @aberror
this issue is dated back 9 months,
please open a new issue proving all or some of the information
requested in the template,
thank you

@dahabit
Copy link
Contributor

dahabit commented Apr 14, 2020

1- rm -rf ios/Flutter/App.framework

2- Change the Runner target build settings Build Phases > Thin Binary script as follows:

/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin

@davefaliskie
Copy link

I think your 'Script' is Missing!
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed

When I add that I get an error /bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory this is when running in xcode, and I've cleaned

@kinan96
Copy link

kinan96 commented Apr 19, 2020

I think your 'Script' is Missing!
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed

where I should write that ?

@srenghong
Copy link

1- rm -rf ios/Flutter/App.framework

2- Change the Runner target build settings Build Phases > Thin Binary script as follows:

/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin

work for me, thanks

@oengmengthong
Copy link

oengmengthong commented Apr 29, 2020

if solution below doesn't work, let try this:

create a new flutter project.
and then copy folder lib and file pubspace.yaml from old project to the new project.
I found many file, are missing on folder ios at an old project

@tong-do
Copy link

tong-do commented May 13, 2020

I think your 'Script' is Missing!
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build
"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed

it's worked for me! thx

@tanmaypandharipande
Copy link

flutter upgrade

worked for me !

@Ahmadre
Copy link

Ahmadre commented May 23, 2021

1- rm -rf ios/Flutter/App.framework

2- Change the Runner target build settings Build Phases > Thin Binary script as follows:

/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin

Thank you so much @dahabit you helped me a lot :)

@github-actions
Copy link

github-actions bot commented Aug 1, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests