【发布时间】:2022-11-12 23:34:57
【问题描述】:
我有一个项目运行一些我使用自制软件安装的实用程序,它的构建规则之一。
在我的 M1 mac 上,自制软件安装在 /opt/homebrew/bin 上。
我的~/.zprofile 文件中有eval "$(/opt/homebrew/bin/brew shellenv)",但Xcode 似乎不尊重这一点(或者可能会覆盖它?)。
在 Xcode 运行脚本命令期间尝试评估 PATH 变量时,我得到以下信息:
PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
【问题讨论】:
标签: ios xcode apple-m1 apple-silicon