无法找到“ Frameworks / App.framework / flutter_assets”的资产路径 [英] Failed to find assets path for "Frameworks/App.framework/flutter_assets"

查看:324
本文介绍了无法找到“ Frameworks / App.framework / flutter_assets”的资产路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在模拟器(iPhone 8)上运行我的flutter应用程序,但是当该应用程序吃午饭时,我得到的只是一个空白的空白屏幕。像这样:

I'm trying to run my flutter app on the simulator ( iPhone 8 ) but when the app lunches all I get is a blank white screen. like this:

终端输出为:

Running pod install...                                             40.0s
Running Xcode build...                                                  

 ├─Assembling Flutter resources...                          20.4s
 └─Compiling, linking and signing...                        57.0s
Xcode build done.                                           288.8s
        path: satisfied (Path is satisfied), interface: en1
Failed to find assets path for "Frameworks/App.framework/flutter_assets"
Configuring the default Firebase app...
        path: satisfied (Path is satisfied), interface: en1
        path: satisfied (Path is satisfied), interface: en1
Configured the default Firebase app __FIRAPP_DEFAULT.
[VERBOSE-2:engine.cc(127)] Engine run configuration was invalid.
[VERBOSE-2:shell.cc(437)] Could not launch engine with configuration.
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.                                           
Syncing files to device iPhone 8...                                     
10,195ms (!)

我使用的是稳定版本的flutter 1.12.13 + hotfix.9 ,此问题仅出现在ios上。

I'm using the stable version of flutter 1.12.13+hotfix.9, and this issue appears only on ios building.

如何解决此问题?

推荐答案

我已经设法解决了这个问题。我刚刚按照忠告 https://github.com/flutter/flutter/issues/29974并添加
$ FLUTTER_ROOT / packages / flutter_tools / bin / xcode_backend.sh嵌入
来运行脚​​本
运行脚本
重建App.framework文件夹后,已将其添加到构建目录中,并且出现了问题不见了
希望这对其他人有帮助。

I've just managed to solve this issue. I've just followed advise https://github.com/flutter/flutter/issues/29974 and added "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed to Run script Run script After rebuilding App.framework folder has been added to build directory and problem has gone. Hope this will help someone else.

这篇关于无法找到“ Frameworks / App.framework / flutter_assets”的资产路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆