Reputation: 335
When compiling a project with an external build environment (scons) in XCode I run into the the issue that XCode can't find protoc which is in the /usr/local/bin directory.
sh: protoc: command not found
How can I add this path variable to sh / xcode
Upvotes: 2
Views: 1134
Reputation: 335
I implemented a shell script that adds the path locally and run this instead of the external build tool. This script first sets the path and flags and then later simply calls the external build environment scons. Not pretty but works...
Upvotes: 0
Reputation: 115
I seem to run into this periodically so about 6 months ago I began keeping an error journal so I wouldn't start from scratch trying to figure out what was wrong.
So for this I had two answers written down:
Change the Install Directory of the Library to $(BUILT_PRODUCTS_DIR) and change the Library Search Paths and the User Header Search Paths of the target to $(BUILT_PRODUCTS_DIR (recursive)
I hope this does it for you, good luck.
Upvotes: 1