Home > OS >  Can't run flutter app on real ios device in debug mode
Can't run flutter app on real ios device in debug mode

Time:11-03

I upgraded to fluter 2.5 from 2.2.3. Then I returned it back to version 2.2.3. After that, I cannot start debugging mod on a real ios phone, stuck on Installing and launching. Removing the fluter cache and clearing the fluter does not help.

[VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
[VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
[VERBOSE-2:shell.cc(576)] Could not launch engine with configuration.

CodePudding user response:

the flow goes like this:

  1. plug your device using data cable to you MAC run xcode-> select you phone on the top-> (note if the version of your iPhone's OS is not recognized then update xcode to 13.1) you can find several videos on that.
  2. then hit the play button from xcode after some time it will ask a key-chain password-> give your MAC's password.
  3. then at the end you've to add trust in your phone. simply go to setting in you phone-> general->device management->trush the apple id.
  4. you are good to go!

CodePudding user response:

Run this command and it resolve the issue:

flutter run --release

and then follow the steps, if needed, to add trust in your phone. simply go to setting in you phone-> general->device management->trust the apple id

  • Related