Oma*_*rif 6 xcode dart flutter
我正在尝试在模拟器( iPhone 8 )上运行我的 flutter 应用程序,但是当应用程序午餐时,我得到的只是一个空白的白屏。像这样:
终端输出为:
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 (!)
Run Code Online (Sandbox Code Playgroud)
我正在使用 flutter 的稳定版本1.12.13+hotfix.9,这个问题只出现在 ios 构建中。
我该如何解决这个问题?
小智 19
我刚刚设法解决了这个问题。我刚刚遵循了建议https://github.com/flutter/flutter/issues/29974并添加了 “$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh”嵌入 到运行脚本 运行脚本 重建App.framework文件夹后有已添加到构建目录,问题已经消失。希望这会帮助别人。
小智 5
您可以按照https://flutter.dev/docs/development/ios-project-migration 中的说明进行操作
特别是构建阶段:
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin
Run Code Online (Sandbox Code Playgroud)
你可以在这里看到更多:https : //github.com/flutter/flutter/issues/52084#issuecomment-600768772
| 归档时间: |
|
| 查看次数: |
4080 次 |
| 最近记录: |