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.
9 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
-
16I dont have anything like "Device Management" on my iphone 7 - ios 14.2– marhynoDec 5, 2020 at 23:09
-
5Same as marhyno: Nothing like "Device Management". iPhone XR iOS 14.7.1. Jul 31, 2021 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" Nov 3, 2022 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? Dec 23, 2022 at 6: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
-
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.AAug 9, 2022 at 22:51
- 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
The following steps worked for me:
- open the xcode
- select your device
- run build (sure you have signed your team first)
- 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
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).
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.
-
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. Oct 30, 2022 at 5:47