LLDB bug in macOS 10.15 where privacy access dialog appears while debugging executables

I submitted a bug report for this, but posting here as well hoping for some answers.

There is a bug in macOS 10.15 (specifically, I am using 10.15.5) in which a privacy access dialog appears when debugging an executable in lldb.

Expected behavior:
  • When debugging an app that lives in the Desktop folder, the process runs as expected without any privacy dialogs appearing. Therefore, we expect the same behavior when debugging regular (non-app) C++ executables; i.e. when debugging the executable, no privacy dialogs should appear

Actual behavior:
  • When debugging a plain C++ executable that lives in the Desktop folder, a privacy dialog to appear appears when the process starts, prompting for access to the Desktop folder

  • This is unexpected and frustrating because it also prevents us from being able to debug executables through ssh (reported in FB7778150)

reported in FB7778150

That bug was marked as a duplicate of another bug (r. 59405365). AFAICT the fix for that is not in the current Xcode 12 seed (12.0b2) but I encourage you to retest with any future seeds that come down the pike.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
LLDB bug in macOS 10.15 where privacy access dialog appears while debugging executables
 
 
Q