【发布时间】:2021-01-15 14:36:25
【问题描述】:
目前,让我的 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.
我真的不知道是什么导致了这个错误。
【问题讨论】:
-
你试过重启模拟器了吗? stackoverflow.com/questions/39495620/…
-
您可能想尝试直接在终端中运行错误日志中的命令(可能带有详细标志),然后看看您是否可以更好地了解出了什么问题。