When I try to run my app on a real phone, after trusting the certificate, I get the following error:
iPhone has denied the launch request.
Internal launch error: process launch failed: Unspecified
When I click on "Details", I get:
Details
Could not launch “MyApp”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: iPhone has denied the launch request.
Internal launch error: process launch failed: Unspecified
--
process launch failed: Unspecified
Domain: IDEDebugSessionErrorDomain
Code: 3
--
I've tried every reset I can think of: building on both Xcode 10 and 11, building for both iOS 12.4 and 13.0, deleting DerivedData and all other imaginable build caches, deleting all relevant certificates from the keychain, restarting the phone and computer, using a different phone. It feels like it started when I tried building and running an app on one of the phones phone after downgrading it (via a restore) from 13.0 to 12.4, but I'm not sure. I'm using an automatically managed provisioning profile. Any ideas?