Xcode 11.7 fresh project fails to run (Message from debugger: Error 1)

First off I'm running macOS 10.15.7 (19H1323) and Xcode 11.7 (11E801a) and no, I can't upgrade macOS as CarbonBlack prevents it (not my personal machine).

Having recently updated Xcode (been doing lots of web stuff lately) and starting a brand new project I keep getting Message from debugger: Error 1 in the run log every time I "run" the project (I've put run in quotes as it builds says that it ran and finishes right away). There are no errors or warnings in the UI or the build log (every message has a green checkmark)

Steps:

  1. Open Xcode
  2. File -> New Project
  3. Give it a name, no Core Data, not document based, no tests, storyboard based
  4. Run project

Expected: Project builds and runs with the generic empty window until Quit is selected from the app menu or stop is pressed in Xcode

Actual: Project builds as expected but UI shows run finished. One message in the run log: Message from debugger: Error 1

I have tried turning off hardened runtime, setting the signing certificate for running locally with automatic code signing, and disabling then enabling developer mode on the machine.

I'm pretty sure if I try to disable system integrity protection that either CarbonBlack with stop me/ have a melt down, or someone from IT will launch a drone strike on me.

Does anyone have a solution to this that actually works? Nothing I have found on Google has had any effect whatsoever.

Thanks

  • I also can't run anything in the simulator or playgrounds even after a restart…

Add a Comment

Replies

Same exact problem here.

I've been diagnosing this further and it appears to occur only if I use a signing certificate.

If I use the "Sign to Run Locally" feature, the debugger works 100% and I get the expected message.

It is literally just that one setting that causes this error to occur.

  • Yeah, that was one of the first things I found, it didn't help

Add a Comment