25

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.

Rio Weber
  • 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 Answers12

34

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
Rio Weber
  • 2,757
  • 1
  • 20
  • 28
24

Same issue happened with me.

Device : iPhone XR and iOS version: 15.4

  1. Open Settings > Developer
  2. Click on Clear trusted computer
  3. Then click on trust this computer
Saif Mohmd
  • 251
  • 2
  • 5
  • 1
    Thanks, 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
    This, plus `flutter clean` & `flutter pub get`. Thank you! – matox Jul 31 '23 at 09:21
3
  1. Go to your device Settings
  2. Go to General
  3. At the bottom you may find Transfer or Reset iPhone option, select that. (Be careful selecting anything here)
  4. 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

Adriaan
  • 17,741
  • 7
  • 42
  • 75
Mukta
  • 1,357
  • 1
  • 15
  • 17
3

Same issue here, I only solved it after uninstalling the app and run it again.

Niels
  • 1,366
  • 15
  • 21
2

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)

  1. Run the project via Xcode > Product > Run

  2. Clear trusted computers by doing the following steps on iPhone

    • Settings > Developer > Clear Trusted Computers
    • Trust this computer
Sxndrome
  • 360
  • 2
  • 11
1

The following steps worked for me:

  1. open the xcode
  2. select your device
  3. run build (sure you have signed your team first)
  4. trust for this developer
Adriaan
  • 17,741
  • 7
  • 42
  • 75
植植心
  • 406
  • 3
  • 5
0

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

Alberto M
  • 1,608
  • 1
  • 18
  • 42
0

On iPhone 7 going to Settings and clearing trusted computers with further build clean did the trick for me

0

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).

0

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.

Mark
  • 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
0

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.

isarojdahal
  • 994
  • 8
  • 12
0

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

Sufferer
  • 65
  • 7