Open migueldeicaza opened 3 years ago
This might be a problem caused by using "bash", if I change my shell to zsh, it works.
Ok, it is now possible for this to work, I will document what is working later, but it seems to be fine on both my new and old machines, and one of them is using bash, and working with the attach capability.
I tried updating this stuff after almost a year dormant, and for some reason my "schemes" were gone.
Anyways, I tried creating the schemes again, and even tried a fresh clean project, and tried the "Run in Terminal" option in Xcode:
But when I try to launch the application, it calls into Terminal, but does not seem to pass all the arguments necessary to start the program:
In fact, the actual invocation is not triggered, I manually have to press the return key and I get the above error.
I found about this option on this StackOverflow question:
https://stackoverflow.com/questions/21998706/terminal-window-inside-xcode
While researching why this did not work, I ran into this blog post from Erica Sadun that covers this technique here:
https://ericasadun.com/2020/07/15/executing-command-line-directly-from-xcode/
And she says in a section aptly named "Xcode’s Crazy Terminal Option"
While I do not have spaces on my invocation, once this state is triggered, Xcode can not stop the process, and can not even quit. You must force quit Xcode.
It does not look like a happy path to get this thing going, one alternative is probably what I recall I did last year:
Which is a bit of an unpleasant experience for third parties attempting to look into this.