On Mac M1 installed via homebrew getting needle: command not found
Sadmansamee opened this issue · 1 comments
Sadmansamee commented
I have installed needle on Mac M1 via homebrew, through the terminal I could access it but when I added the script on Xcode I'm getting the error **needle: command not found**
Here's my script
SOURCEKIT_LOGGING=0 && needle generate Sources/NeedleGenerated.swift Sources/ --header-doc ../../copyright_header.txt
Sadmansamee commented
It seems writing it this way solved the issue.
export PATH="$PATH:/opt/homebrew/bin"
if which needle; then
SOURCEKIT_LOGGING=0 && needle generate iOS/NeedleGenerated.swift iOS/
else
echo "warning: Needle not installed, download from https://github.com/uber/needle using Homebrew"
fi