【问题标题】:Flutter app fails to build on iOS simulatorFlutter 应用无法在 iOS 模拟器上构建
【发布时间】: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/…
  • 您可能想尝试直接在终端中运行错误日志中的命令(可能带有详细标志),然后看看您是否可以更好地了解出了什么问题。

标签: ios xcode flutter


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2021-09-21
    • 1970-01-01
    • 2020-07-07
    • 1970-01-01
    • 2020-07-11
    • 2021-05-27
    • 1970-01-01
    • 2019-03-22
    • 2022-09-28
    相关资源
    最近更新 更多