gpt4 book ai didi

ios - iOS 设备上的白色/空白屏幕,但在模拟器和 Android 上工作正常

转载 作者:IT王子 更新时间:2023-10-29 07:17:53 33 4
gpt4 key购买 nike

我有一个 Flutter 应用程序,它几乎只是基本的 Android Studio 模板。当我在 Android 模拟器或 iOS 模拟器上运行应用程序时,它工作正常并显示我的小部件,当我为 Android 制作发布版本时它也工作得很好,但是当我为 iOS 制作发布版本并运行它时iPhone 我只看到白色/空白屏幕,没有显示任何小部件。我已经用谷歌搜索了这个并在构建之前尝试使用 flutter clean 但我无法弄清楚为什么会这样。请问这里有什么想法吗?

我现在还尝试从 XCode 工作区在设备上运行,在那里我也得到了一个白色/空白屏幕,并且在控制台日志中是这样的:

2019-06-25 11:10:43.248687+0200 Runner[513:22949] Failed to find snapshot: /var/containers/Bundle/Application/B27448A1-A487-44FC-B6F7-CCFBDFCBB0AD/Runner.app/Frameworks/App.framework/flutter_assets/kernel_blob.bin
2019-06-25 11:10:43.533596+0200 Runner[513:22949] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
2019-06-25 11:10:43.533634+0200 Runner[513:22949] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2019-06-25 11:10:43.538915+0200 Runner[513:23047] [VERBOSE-2:engine.cc(115)] Engine run configuration was invalid.
2019-06-25 11:10:43.539130+0200 Runner[513:23047] [VERBOSE-2:FlutterEngine.mm(304)] Could not launch engine with configuration.
2019-06-25 11:10:43.539359+0200 Runner[513:23071] flutter: Observatory listening on http://127.0.0.1:51568/Vcbbvx3tfNI=/

我已将整个项目压缩到此处:https://www.dropbox.com/s/v8olmovqjquxveg/thisisit.zip?dl=0

谢谢
索伦

最佳答案

请转到产品>方案>编辑架构并选择构建配置“发布”

enter image description here

然后

enter image description here

关于ios - iOS 设备上的白色/空白屏幕,但在模拟器和 Android 上工作正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56748461/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com