Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Got the "Error launching application on" after flutter run

Tags:

flutter

I am flowing the official tutorial to install flutter and run the default app on my iPhone Device. After I execute the flutter run, the app is installed and launched on my iPhone but the logs show the bellow error. How do I solve it?

Launching lib/main.dart on My iPhone 6 in debug mode...
Automatically signing iOS for device deployment using specified development team
in Xcode project: XXXXXXXXXX
Running Xcode build...                                                  
 └─Compiling, linking, and signing...                        50.2s
Xcode builds done.                                           90.1s
Installing and launching...                                        41.1s
Error launching the application on My iPhone 6. <-- Error Here
like image 229
ovo Avatar asked Mar 31 '21 06:03

ovo


Video Answer


2 Answers

It happens that there are some process needed to Flutter plugin correctly run on physical devices. I struggled with that and finally found that the processes idevicesyslog and iproxy were being silently blocked by MacOS. You may have noticed already a message liked this:

Mac suggesting to remove iproxy

or a similar one for idevicesyslog.

Once I went to System Preferences -> Security & Privacy in General tab and allowed this apps, everything works. Note that this screen shows only the last app that you tried to run. So I'd recommend that you run flutter app with preferences opened so you can (hopefully) see the messages appearing and click allow.

Option to allow the app. Here it should show one of those 2 names above at a time

MacOS may warn you one more time about the file being downloaded from the internet. Just click open and you're good.

like image 99
Marcelo Ludovico Avatar answered Oct 17 '22 06:10

Marcelo Ludovico


The error do not show again after reboot the iPhone.

like image 1
ovo Avatar answered Oct 17 '22 07:10

ovo