ShahinS
ShahinS

Reputation: 493

iOS 14 not letting Flutter apps (still in dev) to launch from the home screen compared to Building/Running from the IDE

I've been developing a news app with Flutter and when I build and run it through Android Studio it launches fine, but when I try to launch the app by clicking on it on the home screen, it says "in iOS 14+, debug mode flutter apps can only be launched from Flutter tooling,IDEs ....."(Screenshot attatched). Can someone tell me as to how to get around this? enter image description here

Upvotes: 44

Views: 32248

Answers (2)

Ahmed
Ahmed

Reputation: 366

If you want to use the app without being connected via usb

  1. Open the ios folder on Xcode

  2. Make sure your device is connected

  3. Select Product from the menu bar -> Scheme -> Edit Scheme

    Or simply use the shortcut: command + >

enter image description here

  1. Change the build configure to Release
  2. Run the app from Xcode
  3. Disconnect your device and you're good to go!

Upvotes: 34

Anis R.
Anis R.

Reputation: 6922

Apparently, this is a known issue of Flutter on iOS 14 for apps in debug mode, see this article on the Flutter website, and this GitHub issue. So for the time being, I believe your main workarounds are the following:

  • Always run the app from the host PC (using flutter run, IDE debug, etc.)
  • Build a release version of your app (instead of debug) and use that on your device, e.g. use flutter run --release
  • Use a device with iOS 13 or older
  • Use a simulator

Upvotes: 75

Related Questions