Could not run build/ios/iphoneos/Runner.app on Try launching Xcode and selecting "Product > Run" to fix the problem

Viewed 14206

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.

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

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

For me this solution worked. You may have a try

  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

It works for me and hope so work for you as well.

HappyCoding ;)

it's use 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

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

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

Related