App compiles but "Unable to install" on device

When I try to run my app on my iPhone, from Xcode, I get a popup that says Unable to Install "AppName". There is some text in the popup. Here's the first part of it. (I replaced the real app's name with "AppName".)

Anyone know how to fix this?

Unable to install "AppName"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
User Info: {
    DVTErrorCreationDateKey = "2024-09-28 04:04:29 +0000";
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
Unable to install "AppName"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
--
Could not inspect the application package.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
User Info: {
    DVTRadarComponentKey = 282703;
    MobileDeviceErrorCode = "(0xE8000051)";
    "com.apple.dtdevicekit.stacktrace" = (
...

Restart the phone? Restart Xcode? Make sure the phone is showing correctly in the Devices window in Xcode?

What have you tried?

App compiles but "Unable to install" on device
 
 
Q