I've got a M1, with XCode 13.2.1 and monterey.
I've installed brew following the official steps and also I did the extra two steps so the new brew path is added to my path.
Additionally I've added export PATH=/opt/homebrew/bin:$PATH
to my .zshrc
I've installed protobuf
and swift-protobuf
with brew and I can run both in the terminal with no errors.
But when I use protoc
in a custom script in XCode build rules, I get the following error:
/bin/sh: protoc: command not found
/bin/sh: line 7: protoc: command not found
/bin/sh: line 9: protoc: command not found
I could add the path of protoc
which I got from which protoc
but I'm not sure if that would make a problem for other architectures.
Any idea why if protoc
is running in my terminal, it's not running in custom script in XCode Build Rules?