Change the working directory in Xcode

前端 未结 4 950
不思量自难忘°
不思量自难忘° 2020-11-29 08:57

I managed to get my C++ project running in Xcode using cmake -G Xcode. Now I would like to debug it, because of the nice gdb fronted it provides.

However I need to c

相关标签:
4条回答
  • 2020-11-29 09:02

    Just updating this solution to XCode 4.x

    You go on Product -> Scheme -> Edit Scheme

    On the tab Options you choose your working directory.

    0 讨论(0)
  • 2020-11-29 09:03

    In Xcode do a "Get Info" on the executable and look at the first tab - there is a setting there for working directory.

    0 讨论(0)
  • 2020-11-29 09:20

    The default debug working directory is somewhere under ~/Library/Developer/Xcode/DerivedData/project-/Build/Products/Debug. You're better off using the full path.

    0 讨论(0)
  • 2020-11-29 09:23

    In Xcode 4 the working directory settings is under Scheme Settings.

    0 讨论(0)
提交回复
热议问题