32

I can no longer launch my application in release mode on the simulator. When I type "flutter run --release" I get an error message "Release mode is not supported by iPhone 11.". Anyone else have the same problem?

Jeremy HOFFMANN
  • 1,230
  • 1
  • 11
  • 21
  • Can you run "flutter doctor" command and paste output? – chihau Jul 29 '20 at 15:59
  • @Jeremy what did you see... – Ruben Sep 03 '20 at 13:00
  • @chihau @Ruben I'm having the same issue. [Here's](https://gist.github.com/mgalgs/2045dd3679d5b3288f36c5cae200fc21) my `flutter doctor -v`. Looks fine (I'm not doing Android development on this device) – mgalgs Sep 09 '20 at 16:24

3 Answers3

37

Release mode do not supported emulator, I solve this problem by using real device. first connect your device using usb cable, then choose the real device:

~/source/third-party/Cruise/ios on  master! ⌚ 12:29:28
$ ~/apps/flutter/bin/flutter run --release
Changing current working directory to: /Users/dolphin/source/third-party/Cruise
Multiple devices found:
sdk gphone x86 arm (mobile)         • emulator-5554                        • android-x86 • Android 11 (API 30) (emulator)
dolphin’s iPad (mobile)             • 00008020-000E78C01EC3002E            • ios         • iOS 14.0
iPhone SE (2nd generation) (mobile) • D233A502-B00B-4FCC-B4D1-91408C88EC81 • ios         • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
[0]: sdk gphone x86 arm (emulator-554)
[1]: dolphin’s iPad (00002020-000E88C01ECY002E)
[2]: iPhone SE (2nd generation) (D233A502-B00B-4FCC-B4D1-91408C88EC81)
Please choose one: [0|1|2]: 2
Release mode is not supported by iPhone SE (2nd generation).

~/source/third-party/Cruise/ios on  master! ⌚ 12:46:01
$ ~/apps/flutter/bin/flutter run --release
Changing current working directory to: /Users/dolphin/source/third-party/Cruise
Multiple devices found:
sdk gphone x86 arm (mobile)         • emulator-5554                        • android-x86 • Android 11 (API 30) (emulator)
dolphin’s iPad (mobile)             • 00008020-000E78C01EC3002E            • ios         • iOS 14.0
iPhone SE (2nd generation) (mobile) • D233A502-B00B-4FCC-B4D1-91408C88EC81 • ios         • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
[0]: sdk gphone x86 arm (emulator-5554)
[1]: dolphin’s iPad (00008020-000E78C01EC3002E)
[2]: iPhone SE (2nd generation) (D233A502-B00B-4FCC-B4D1-91408C88EC81)
Please choose one: [0|1|2]: 1


Launching lib/main.dart on dolphin’s iPad in release mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 6JP4P88ZJB
Running pod install...                                              2.1s
Running Xcode build...

 └─Compiling, linking and signing...                        32.7s
Xcode build done.                                           193.4s
Dharman
  • 30,962
  • 25
  • 85
  • 135
Dolphin
  • 29,069
  • 61
  • 260
  • 539
  • 2
    This answer does not solve the problem of using a **Simulator**. It's a workaround, not a solution. – genericUser Nov 29 '22 at 12:11
  • 1
    This is a bad answer, as it implies you should go out and buy expensive physical devices. The question was specifically related to simulators – MikkelT May 24 '23 at 13:56
  • I do not agree with your opinion, Release mode do not supported emulator,at least answer this question moment, why you going to a impossible way to solve your issue? @MikkelT – Dolphin May 24 '23 at 14:10
2

To solve this you can change the Build Configuration of the Run schema in xcode:

open project in xcode

1.) tap on Runner, and Edit scheme

2.) Select Release for the Build Configuration of the Run schema

enter image description here enter image description here

Sambhav jain
  • 1,467
  • 12
  • 19
-1

I was having the very same error and mine was due to not having Developer mode enabled on my iPhone.

Solution as printed on the console: To use iPhone for development, enable Developer Mode in Settings → Privacy & Security.

Keita
  • 335
  • 2
  • 3