Flutter app fails to build on iOS simulator

Viewed 766

Currently, I am in quite the pickle with getting my flutter app running on Xcode's ios simulator. Prior to these issues it has worked, but now I get this build error after calling 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.

1 Answers

I faced the same issue. I think it is because of some caching issues. Close and open another simulator device works for me.

Related