Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 仅在iOS模拟器上热重启时颤振应用程序崩溃_Flutter_Android Studio - Fatal编程技术网

Flutter 仅在iOS模拟器上热重启时颤振应用程序崩溃

Flutter 仅在iOS模拟器上热重启时颤振应用程序崩溃,flutter,android-studio,Flutter,Android Studio,不确定发生了什么,但当我热重启时,我的Flitter应用程序在使用iOS模拟器时崩溃。热重启在Android模拟器上运行良好。我甚至尝试卸载并再次安装XCode。 这是终端上打印的内容 [ +459 ms] Hot restart performed in 924ms. [ +3 ms] Restarted application in 936ms. [ +900 ms] Service protocol connection closed. [ ] Lost connecti

不确定发生了什么,但当我热重启时,我的Flitter应用程序在使用iOS模拟器时崩溃。热重启在Android模拟器上运行良好。我甚至尝试卸载并再次安装XCode。 这是终端上打印的内容

[ +459 ms] Hot restart performed in 924ms.
[   +3 ms] Restarted application in 936ms.
[ +900 ms] Service protocol connection closed.
[        ] Lost connection to device.
[   +3 ms] DevFS: Deleting filesystem on the device (file:///Users/frederickmfinanga/Library/Developer/CoreSimulator/Devices/775342AF-E52F-46EB-9CDB-9C29720FC357/data/Containers/Data/Application/D093EF45-D895-481C-B965-CA56F7881A5C/tmp/the_hair_routinenSBAWo/the_hair_routine/)
Failed to send request: {"jsonrpc":"2.0","id":"46","method":"getMemoryUsage","params":{"isolateId":"isolates/4165970133496907"}}
[ +257 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[   +1 ms] "flutter run" took 646,839ms.
[ +259 ms] ensureAnalyticsSent: 242ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hook priority 4
[        ] Shutdown hooks complete
[        ] exiting with code 0

几天前我遇到了类似的情况

发生这种情况的原因有两种可能:

您尚未授予您试图访问的内容(如获取位置/摄像机)的权限。如果是这种情况,请阅读您可能正在使用的软件包的文档,并通过编程方式添加权限

有时我们的podfile引用会被破坏。这就是我的情况。为此,请删除podfile.lock文件ios/podfile.lock。对于新的开始,您还可以删除pubspec.lock。然后做一个flatterpub get或者简单地运行你的应用程序


几天前我遇到了类似的情况

发生这种情况的原因有两种可能:

您尚未授予您试图访问的内容(如获取位置/摄像机)的权限。如果是这种情况,请阅读您可能正在使用的软件包的文档,并通过编程方式添加权限

有时我们的podfile引用会被破坏。这就是我的情况。为此,请删除podfile.lock文件ios/podfile.lock。对于新的开始,您还可以删除pubspec.lock。然后做一个flatterpub get或者简单地运行你的应用程序


我也有同样的问题。经过两天的调试,我才发现这是由我的一个依赖项引起的。它是软件包版本1.1.3

正如我所见,该问题已在2021年5月10日发布的firebase_auth 1.1.4中得到解决


因此,如果您使用此软件包,只需更新到firebase_auth 1.1.4即可

我也遇到了同样的问题。经过两天的调试,我才发现这是由我的一个依赖项引起的。它是软件包版本1.1.3

正如我所见,该问题已在2021年5月10日发布的firebase_auth 1.1.4中得到解决


因此,如果您使用此软件包,只需更新到firebase_auth 1.1.4

是否因为您没有删除该文件的权限?是否因为您没有删除该文件的权限?是的,我在发布此文件后不久就更新了我的firebase软件包。但我不确定这是否是问题所在,因此在这里没有回答。谢谢@FrederickFinanga我很高兴它起了作用!如果问题已解决,请单击复选标记接受答案:是的,我在发布这篇文章后不久就更新了我的firebase软件包。但我不确定这是否是问题所在,因此在这里没有回答。谢谢@FrederickFinanga我很高兴它起了作用!如果问题已解决,请单击复选标记接受答案: