'Flutter app stuck on Installing and Launching step for physical iPhone

Annoying problem here for my Flutter app: iOS13.3, Xcode11.3 on a physical iPhoneX. The iOS-Simulators all work. The problem is only happening on a physical device. The Flutter App freezes at startup (i.e. at Installing and Launching... step) ! Any ideas ?? My flutter doctor -v does not bring any problems. Also tried flutter clean and flutter upgrade. But nothing seems to fix the problem...

If I run the App from Xcode (Runner.xcworkspace) then everything works as well. Only from VSCode and Flutter, I can no longer launch my physical iPhoneX.

Also, when uploaded to TestFlight, the App freezes at App Start ! (grey screen freeze). Therefore Apple App Store rejects all Flutter Apps for now ! Very annoying.

I am not sure if the Installing and Launching... freeze is related to the TestFlight and App Store Problem !! Might as well be...



Solution 1:[1]

This fixed the issue for me:

  1. Run the app from Xcode.
  2. Disable WiFi on iPhone.
  3. Run from Android Studio.
  4. Turn on WiFi on iPhone once the launch process has completed.

Solution 2:[2]

This is a workaround solution I was having this issue. I uninstalled the app from my device, opened the project in xcode, ran some build cleaning thing that appeared in the yellow triangle warning area, then built the app via xcode. Then uninstalled the app from device again. Then ran via android studio and it worked.

Solution 3:[3]

As in my case, I use one of following solutions to fix the issue:

#1. close WiFi on mac, then run from Android Studio; OR

#2. close WiFi on both mac and iphone, then run from Android Studio; OR

#3. enable hotspot on iphone and connect it from mac, then run from Android Studio;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 david72
Solution 2 tormzhang
Solution 3