How to fix "Could not launch: xxxx Executable does not exist" error"

Hi i am currently using XCode 15 to build a Swift command line application.

But when I try to build & debug my project, it throws an error saying that it could not launch the executable.

It does build but as the error suggests, the Build dir does not have a executable in it. I have messed around with DerivedData & Build location settings for quite a bit with no luck.

Currently both of them are at default settings as I cleared XCode caches from ~/Library/Caches & created a new project. I tried compiling the basic Hello World but that seems to "build" but with no executable.

I have attached the report for the Could not launch error

Am i missing something with respect to build location / configuration?

Thanks for any assistance.

If you create a new project from the macOS > Command Line Tool template, does it have the same problem?

Share and Enjoy

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

Please reply as a reply. I’m not notified when you reply in the comments. For this and other titbits, see Quinn’s Top Ten DevForums Tips.

Yes same problem with a brand new project as well.

Hmmm, that’s weird. I’ve seen problems like this before and they’re usually related to build settings, but that’s not a possibility if you start with a new project.

If you create a new local user on your Mac — using Settings > Users & Groups — does the problem reproduce there?

Share and Enjoy

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

How to fix "Could not launch: xxxx Executable does not exist" error"
 
 
Q