带有Firebase的iOS Flutter:启动时在FlutterAppDelegate中显示白屏和SIGABRT [英] iOS Flutter with Firebase : white screen and SIGABRT in FlutterAppDelegate on launch

查看:227
本文介绍了带有Firebase的iOS Flutter:启动时在FlutterAppDelegate中显示白屏和SIGABRT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,在一个以上的项目中,并且非常不一致的是,启动应用程序后出现了白屏,并且Xcode在@objc class AppDelegate: FlutterAppDelegate行上显示了错误Thread 1: signal SIGABRT.

In more than one project now, and very inconsistently, I get a white screen upon launching my app, and Xcode showing an error, Thread 1: signal SIGABRT, on the line @objc class AppDelegate: FlutterAppDelegate.

这些是 iOS Flutter 项目,它们使用 Firebase .

These are iOS Flutter projects that make use of Firebase.

我正在为此寻求一些可靠的通用修补程序,因为它似乎是间歇性发生的,并且需要我花很长时间解决,通常是在尝试了很多事情之后,我才知道是什么解决了该问题.

I'm looking for some solid universal fixes for this, because it appears to happen intermittently and takes a long time for me to resolve, which is usually after trying so many things that I dont' know what fixed it.

我将对何时发生什么何时不发生进行系统的介绍,因此我可以使这个问题清楚而有用.
我的Xcode当前版本为11.0.0.
我有一个iOS 8.0的部署目标.

I'm going to be systematic about when it happens now, and when it doesn't, so I can make this question clear and useful.
My Xcode is currently version 11.0.0.
I have a Deployment Target of iOS 8.0.

  • 当我从VS代码调试器或Xcode在运行iOS 9.3.5的iPad上运行应用程序时,发生崩溃
  • 当我从Xcode将其运行到iPhone 6模拟器或iPhone Xs模拟器时,它不会崩溃

推荐答案

好-所以-在把问题放在一起的时候,我(1)在iPad设备上尝试了该应用程序,然后崩溃了,(2)在某些模拟器上尝试了该应用程序然后它起作用了,然后(3)在我的iPad上重试了该应用程序,并且起作用了.

OK - so - while putting the question together I (1) tried the app on the iPad device and it crashed, (2) tried the app on some simulators and it worked, then (3) retried the app on my iPad and it worked.

因此有时可以解决此问题的解决方案是从Xcode中进行:

So a solution that works to fix this issue sometimes is to, from within Xcode :

这篇关于带有Firebase的iOS Flutter:启动时在FlutterAppDelegate中显示白屏和SIGABRT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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