Skip to content

XCode starts GUI applications with Terminal and wrong environment variables #61

@Manderby

Description

@Manderby

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions