发布于 2021-02-02 12:21:10
我无法找到如何永久地修改Xcode构建阶段脚本的$PATH变量。此脚本将在运行期间将Apple Silicon自制程序路径添加到您的脚本路径。我已经在M1和Intel Mac上测试过了,它对这两个系统都有效。
# Adds support for Apple Silicon brew directory
export PATH="$PATH:/opt/homebrew/bin"
if which swiftlint; then
swiftlint autocorrect && swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fihttps://stackoverflow.com/questions/65991508
复制相似问题