Flutter应用程序打开,但停留在初始屏幕上 [英] Flutter app opens, but is stuck on splash-screen

查看:155
本文介绍了Flutter应用程序打开,但停留在初始屏幕上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我构建iOS应用程序时,它在Macbook上的模拟器中完美打开. 当我在iTunes商店上发布该应用程序时,该应用程序不再起作用.初始屏幕已显示,但停留在屏幕上.

When I built my iOS app, it opened perfectly in the simulator on my Macbook. When I publish the app on the itunes store, the app does not work anymore. The splashscreen is shown, but stays on the screen.

推荐答案

对我来说解决方案:

1)用Flutter Doctor更新了我的iOS工具链

1) updated my iOS toolchain with flutter doctor

2)flutter clean

3)在终端中的flutter build ios --release

4)以Xcode存档

4) Archive in Xcode

这篇关于Flutter应用程序打开,但停留在初始屏幕上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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