Using homebrew-installed packages during Xcode's Run Script phase #3035
Unanswered
smalsam-newr
asked this question in
Everyday usage
Replies: 2 comments 3 replies
-
Whatever fix you prefer. I would personally check if you're running on ARM and just call the binary directly depending on that. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When Xcode runs a script during the build's Run Script phase, it has its own environment this runs in. This environment's PATH includes /usr/local/bin, but not /opt/homebrew. This means that, on an Intel Mac, I could run, say, cmake (or whatever) installed from Homebrew, but it is not found on an Apple Silicon Mac. What is the preferred fix for this, such that I could continue to run a script on both Intel and Apple Silicon platforms?
Beta Was this translation helpful? Give feedback.
All reactions