xcode 中的 $PATH 在哪里设置? [英] where is $PATH set in xcode?

查看:28
本文介绍了xcode 中的 $PATH 在哪里设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看起来 xcode 的 $PATH 环境设置与我的用户 shell 环境不同.

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

xcode 从哪里获取 $PATH 设置以及附加到搜索路径的最佳方式是什么?

Where does xcode get the $PATH setting from and what's the best way to append to the search path?

推荐答案

如果您正在编写 Run Shell Script 构建阶段,您可以这样做:

if you're writing a Run Shell Script build phase, you can just do:

PATH=${PATH}:/opt/local/bin

或脚本内容中的任何内容.

or whatever inside the script content.

这篇关于xcode 中的 $PATH 在哪里设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆