Flutter iOS Simulator app closes instantly after launch with RequestDenied and “Unable to lookup in present state: Shutdown” errors

0
1
Flutter iOS Simulator app closes instantly after launch with RequestDenied and “Unable to lookup in present state: Shutdown” errors


I’ve a Flutter mission that I’m making an attempt to run on the iOS Simulator, however the app closes instantly after launching.

What I did:

  1. Created a new Flutter mission and it runs superb on the iOS Simulator.
  2. Copied over:
    • lib/ folder (all Dart code)
    • property/ folder
    • Dependencies from my outdated mission’s pubspec.yaml
  3. Modified the bundle identifier in Xcode (Runner goal → Signing & Capabilities).
  4. Constructed and ran:
flutter clear
flutter pub get
cd ios && pod set up && cd ..
flutter run
  1. The construct succeeds and the app installs on the simulator, however…
Simulator gadget didn't launch ps.snehbodyplushaivid.com.
Area: FBSOpenApplicationServiceErrorDomain
Code: 1
Failure Cause: The request was denied by service delegate (SBMainWorkspace).
Consumer Information: {
    BSErrorCodeDescription = RequestDenied;
}
The operation couldn’t be accomplished. Launch failed.
Area: RBSRequestErrorDomain
Code: 5
Failure Cause: Launch failed.

More information when operating from Android Studio (as an alternative of Xcode):

Launching lib/major.dart on iPhone 15 in debug mode...
Working pod set up...
Working Xcode construct...
Xcode construct performed.                                           377.8s
Unable to put in /Customers/pragneshbhaisapra/Paperwork/body_plus_vid_generator/construct/ios/iphonesimulator/Runner.app on A0878FEA-1BEE-4983-ACEF-93913008FFAF. That is typically attributable to a malformed plist file:
ProcessException: Course of exited abnormally with exit code 149:
An error was encountered processing the command (area=com.apple.CoreSimulator.SimError, code=405):
Unable to lookup in present state: Shutdown
  Command: /usr/bin/arch -arm64e xcrun simctl set up A0878FEA-1BEE-4983-ACEF-93913008FFAF /Customers/pragneshbhaisapra/Paperwork/body_plus_vid_generator/construct/ios/iphonesimulator/Runner.app
Error launching utility on iPhone 15.

What I attempted:

  • Deleted Pods/ and Podfile.lock, reinstalled pods.
  • Ran flutter clear and rebuilt.
  • Erased simulator content material and settings.
  • Checked signing and provisioning (set to my Apple ID with “Mechanically handle signing”).
  • Verified Runner.app is constructed and current in construct/ios/iphonesimulator/.

Atmosphere data:

  • macOS: 15.5
  • Xcode: 16.4
  • Flutter: 3.32.3 steady channel
  • Dart: 3.8.1
  • iOS Simulator: iPhone 15, iOS 17.5
  • The identical simulator runs my different Flutter initiatives superb.

LEAVE A REPLY

Please enter your comment!
Please enter your name here