Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adding protoc to xcode

How does one add the protoc (Protocol Buffers) compiler to xcode so .proto files are compiled when building the project? also, these files have to be built first so the auto generated files are then available to the C++ compiler.

like image 397
amitn Avatar asked May 06 '26 23:05

amitn


1 Answers

Get Info on your target in Xcode and add a new build rule using the “+” button at the bottom of the Rules tab.

like image 144
Ben Stiglitz Avatar answered May 09 '26 11:05

Ben Stiglitz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!