NALib icon indicating copy to clipboard operation
NALib copied to clipboard

XCode starts GUI applications with Terminal and wrong environment variables

Open Manderby opened this issue 7 months ago • 0 comments

Happens since updating to macOS Sequoia 15.4.1 (24E263) and XCode Version 16.3 (16E140).

The applicaiton starts up normally but in addition to the usual output in the XCode subwindow (bottom right), a Terminal application window opens up, starting the same process and sometimes even taking over control of the app when the app is stopped in XCode. What is even worse: The working directory in the Terminal window is wrong.

What seems to help: Add a sleep(1) at the start of the main function. This seems to give time to the debugger to properly attach itself.

I suspect, the debugger is being attached too late with the wrong environment variables.

A bug report has been written to Apple. Waiting for an anwser.

Manderby avatar Apr 27 '25 07:04 Manderby