Question: I am flowing the official [tutorial](https://flutter.dev/docs/get-started/install/macos) 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

```

Answer: 
Same error -- Running fine through Xcode, when I ran with flutter CLI, the app would open, but the terminal log output would crash with the error as in the post.

I ran `flutter update` and simultaneously turned iPhone off and back on. After doing that, the below popup appeared (on mac).

[![A software update is required to connect to iPhone](https://i.stack.imgur.com/EWFCy.png)](https://i.stack.imgur.com/EWFCy.png)

I believe after the install finished, I ran the below (which I ran several times before updating flutter and installing the popup):

```sh
flutter clean
rm -rf ios/Pods
flutter pub get
cd ios && pod install && cd ..

```
run the flutter app using flutter run from command line, then the MacBook will ask for permission to open the app and app runs,