When running an iOS App on a real iPhone (not Simulator) you may run into this problem.
The reason is because the app isn't signed by a trusted source.

- 2,757
- 1
- 20
- 28
-
see: https://stackoverflow.com/questions/69999682/flutter-doctor-gives-bad-cpu-type-in-executable you may need to install rosetta....... – Brett Young Jun 24 '23 at 17:17
12 Answers
To fix this you have to Open Settings on your iPhone and navigate to: General -> Device Management, then select your Developer App certificate and "trust" it.
- Update: it may now be called General -> VPN & Device Management

- 2,757
- 1
- 20
- 28
-
17I dont have anything like "Device Management" on my iphone 7 - ios 14.2 – marhyno Dec 05 '20 at 23:09
-
5Same as marhyno: Nothing like "Device Management". iPhone XR iOS 14.7.1. – Caio Santos Jul 31 '21 at 21:16
-
1This worked for me after updating the signing profile, took a few tries for it to appear. The menu item is now called "VPN & Device Management" – Webkraft Studios Nov 03 '22 at 11:50
-
@ Webkraft Studios I see "VPN & Device Management", but there's nothing there to "trust". What did you try a few times for it to appear? – reesaspieces Dec 23 '22 at 06:39
Same issue happened with me.
Device : iPhone XR and iOS version: 15.4
- Open Settings > Developer
- Click on Clear trusted computer
- Then click on trust this computer

- 251
- 2
- 5
-
1Thanks, this worked for me. Out of nowhere, VS Code and flutter threw this error, and it ran fine in XCode. Cleared the trusted computers, then it ran fine in VS Code. – Loren.A Aug 09 '22 at 22:51
-
2
- Go to your device Settings
- Go to General
- At the bottom you may find Transfer or Reset iPhone option, select that. (Be careful selecting anything here)
- Now choose Reset option and select Reset Location & Privacy. (Enter your pin to confirm. After few second it will prompt the trust this computer option.)
In Shortcut you can go Settings>General>Transfer or Reset iPhone>Reset>Reset Location & Privacy or directly search for Reset then choose Reset Location & Privacy
Now you will find the previous trusted app in Device Management. Please remove if you have same. Now re-run
What worked in my case
A simple
flutter clean
flutter pub get
did solve the issue
What I tried before (and did not solve the issue)
Run the project via Xcode > Product > Run
Clear trusted computers by doing the following steps on iPhone
- Settings > Developer > Clear Trusted Computers
- Trust this computer

- 360
- 2
- 11
Xcode was configured with an ad hoc profile instead of a dev profile, changing that fixed it.

- 1,608
- 1
- 18
- 42
On iPhone 7 going to Settings and clearing trusted computers with further build clean
did the trick for me
I ran into this issue when I had a very low wifi connection. The low connection would cause this issue intermittently. Fixing the wifi connection fixed this issue for me.
(In my case, I needed to reset my wifi settings on my iPhone).

- 33
- 6
I had this issue when I tried to install a different version of the same app (store and dev). All I needed to do was to fully uninstall all versions of the app from the target iPhone. Might not work in every case, but easy to try.

- 31
- 1
- 7
-
Your 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. – Prateek Varshney Oct 30 '22 at 05:47
You have solution in the question itself "Try launching Xcode and selecting "Product > Run" to fix the problem".
First open Xcode, plug your phone to your Laptop. Select device while clicking play button and boom.

- 994
- 8
- 12
This can also happen incase you machine runs out of space. Try to check fn storage is enough.

- 65
- 7