Flutter应用无法在iOS模拟器上构建

时间:2020-09-29 23:07:02

标签: ios xcode flutter

当前,让我的Flutter应用程序在Xcode的ios模拟器上运行让我很吃惊。在解决这些问题之前,它已经起作用了,但是现在在调用flutter run之后出现了这个构建错误:


Exception: Unable to launch alfarogavin2705-icloud.com.kiwis on 8A6F9997-A0BA-441A-A48E-40503A7E3DA4:
ProcessException: Process exited abnormally:
alfarogavin2705-icloud.com.kiwis: -1

An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "alfarogavin2705-icloud.com.kiwis" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: Busy ("Application failed preflight
checks").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=6):
        The operation couldn’t be completed. Application failed preflight checks
        Application failed preflight checks
  Command: /usr/bin/xcrun simctl launch 8A6F9997-A0BA-441A-A48E-40503A7E3DA4 alfarogavin2705-icloud.com.kiwis
  --enable-dart-profiling --enable-checked-mode --verify-entry-points --observatory-port=0
Error launching application on iPhone 11 Pro Max.

老实说,我不知道是什么导致了此错误。

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。我认为这是因为一些缓存问题。关闭并打开另一个适合我的模拟器设备。