After updating my Apple Developer ID, I can no longer launch my iOS app.

When I launch XCode and run it, after the app is installed on the actual device, it immediately crashes and XCode displays the following message...
  • message

Could not launch “MyAppXXX”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: ***'s iPhone has denied the launch request.
Internal launch error: process launch failed: Unspecified

process launch failed: Unspecified
Domain: IDEDebugSessionErrorDomain
Code: 3

  • What I did

1,
Run KeyChain and delete all the development certificates on my Mac. Restart, Xcode->Product->Clean, XCode->Product->Rebuild(and generate certificates), install App, and Run.

2,
Delete all .mobileprovision in ~/Libray/MobileDevice/Provisioning Profiles. Restart, Xcode->Product->Clean, XCode->Product->Rebuild, install App, and Run.

3,
Replace Bundle Identifier from wildcard to correct Identifier. Restart, Xcode->Product->Clean, XCode->Product->Rebuild, install App, and Run.

4,
From Mac's Terminal, run the command "sudo DevToolsSecurity -enable". Restart, Xcode->Product->Clean, XCode->Product->Rebuild, install App, and Run.

...None of the above were able to resolve the issue.

  • Note

XCode 11.3
iOS 12.4
MacOS Mojave 10.14.6
  • It works fine on the iPhone simulator.

  • There are no profiles that I can choose in iPhone->Settings->General->Profile. From XCode->Window->Device and Simulators->(rigt click on my device's name)->Show provisioning profiles..., I can see that the Provisioning Profile of my bundle has been installed.

After updating my Apple Developer ID, I can no longer launch my iOS app.
 
 
Q