简体   繁体   English

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

[英]Flutter app fails to build on iOS simulator

Currently, I am in quite the pickle with getting my flutter app running on Xcode's ios simulator.目前,我对在 Xcode 的 ios 模拟器上运行我的 flutter 应用程序感到非常困惑。 Prior to these issues it has worked, but now I get this build error after calling flutter run:在这些问题之前它已经工作了,但现在我在调用 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.

I honestly don't know what is causing this error.老实说,我不知道是什么导致了这个错误。

I faced the same issue.我遇到了同样的问题。 I think it is because of some caching issues.我认为这是因为一些缓存问题。 Close and open another simulator device works for me.关闭并打开另一个适合我的模拟器设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM