where is $PATH set in xcode?

前端 未结 9 758
半阙折子戏
半阙折子戏 2020-12-03 07:16

It looks like xcode\'s $PATH environment setting is different from my user shell environment.

Where does xcode get the $PATH setting from and what\'s the best way t

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 07:23

    Xcode doesn't look at your shell path environment.

    Have a look at NSProcessInfo; and do an NSLog to see what comes up.

    If you want a path to apply to all graphical programs you need to set up the ~/.MacOSX/environment.plist. as described.

    The recommended way to set the environmen variables are actually in /etc/paths and etc/paths.d although these are also not picked up by Xcode.

    I asked about this here.

提交回复
热议问题