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.
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.
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
For me this solution worked. You may have a try
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:
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