Xcode and Curses.h with Error opening terminal

前端 未结 4 1245
名媛妹妹
名媛妹妹 2020-12-31 20:05

I am trying to compile a simple curse project with Xcode.
The program compiles fine with g++ in terminal with the flag -lcurses, and runs fine.

Started

4条回答
  •  无人及你
    2020-12-31 20:25

    In XCode 8 you can choose to run within the terminal, from the Edit Scheme... Options page.

    Though in my quick testing it doesn't seem to work all that well; it sometimes (not always) seems to 'lose' the debuggee, or the debuggee never starts, and thinks it's still running. If you try to exit, Xcode gets stuck. I have found that if you find and then kill a process called lldb-rpc-server you can avoid having to force-quit.

    In more detail (in case this helps anyone) whenever the debuggee fails to start, I open a Terminal and type

    ps x | grep lldb
    

    then

    kill 12345
    

    where 12345 is the process ID that ps gives me.

提交回复
热议问题