<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/107095>107095</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            remote debugging macOS to macOS launches app-bundle as "standalone executable"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          torarnv
      </td>
    </tr>
</table>

<pre>
    I've mounted the build directory of my host machine to a macOS VM, where I run:

```
admin@macos1500beta7 ~ % export LLDB_DEBUGSERVER_PATH=/Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/debugserver
admin@macos1500beta7 ~ % /opt/homebrew/Cellar/llvm/18.1.8/bin/lldb-server platform --server --listen '*:1234' --log-channels "gdb-remote Process: lldb host"
```

I then connect to the VM and launch via:

```
platform select remote-macosx
platform connect connect://macos1500beta7:1234
target create /build/dir/path/to/my.app
run
```

Which launches the app. 

But, the launched app does not show a menu bar, or have an entry in the Dock. And in Activity Monitor the process has the same icon as when running standalone executables. 

Launching the app via `lldb` locally on the VM does not have this issue.

Adding an explicit `activationPolicy = NSApplicationActivationPolicyRegular` at startup "fixes" the dock and menu entries, but the icon is still missing.

I was under the impression that `target create /build/dir/path/to/my.app` would be reflected 1:1 to the remote machine, and launched there, but perhaps `lldb` is copying over `/build/dir/path/to/my.app` to the remote machine? And if so, is it missing the `Info.plist`?

Do I need to do something extra when launching remotely to ensure this works, or is it a bug?
 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVd9v4zYM_muUFyKGI-dH85CHtDlvBXpb0bt1jwdZYmLtZNGQ5KR52d8-UE567eE23IDCjSSK_PjxI6VitAePuBGLW7HYTdSQWgqbREEFf5w0ZM6beyFXR4SOBp_QQGoRmsE6A8YG1InCGWgP3Rlaigk6pVvrERKB4sXvn-D5o5B3cGoxINxD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