Xcode 15 debug executable failed

I am working on a project with Xcode. In the schematic of my project, I checked the Debug executable box. There is no problem in the emulator. But when I run my project on my own device, I get different pid code errors and the application does not open. However, when the Debug executable box is unchecked, my project works. But I am unable to debug my code without the Debug executable checked. Can someone help me? Xcode version is 15.2 and my device version is 17.2.

Methods I have tried; Delete DerivedData Closing the Debug executable box Try different device sudo DevToolsSecurity -enable

Sometimes, restarting the Mac and the device takes care of stuff like this. It's worth a try.

Another good diagnostic test is to create a new project from one of Xcode’s built-in app templates. That’ll tell you whether the problem is specific to your general setup or specific to your main project.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Xcode 15 debug executable failed
 
 
Q