iOS 14 not letting Flutter apps (still in dev) to launch from the home screen compared to Building/Running from the IDE
Solution 1
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
Solution 2
I think flutter run --release
is the easiest way for you to do it
Solution 3
If you want to use the app without being connected via usb
-
Open the ios folder on Xcode
-
Make sure your device is connected
-
Select Product from the menu bar -> Scheme -> Edit Scheme
Or simply use the shortcut: command + >
- Change the build configure to Release
- Run the app from Xcode
- Disconnect your device and you're good to go!
ShahinS
Updated on June 24, 2022Comments
-
ShahinS almost 2 years
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?
-
w461 over 3 yearsHi Anis, could you explain option 2 (flutter run) a bit further?!
-
Anis R. over 3 years@w461 Basically step 2 is: Open a terminal on your project directory, and write the command
flutter run --release
. Didn't test myself if that option fixes the issue, I simply found it in the linked pages. -
Eray Hamurlu almost 3 yearssimulator fixed for my issue
-
AnasSafi almost 3 years
flutter run --release
worked like a charm -
Admin over 2 yearsYour answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
-
Ax M about 2 yearsThis should be the accepted answer. Exactly what I was looking for!