Need help with c++ rpc libraries on macOS

I’m looking for RPC libraries to use in C++. I’m using a MacBook Pro. Unfortunately, for every library I’ve tried, either the mac throws an error on running the makefile, or the installed header files are “not found” even though they are in usr/local/include. I’ve tried librpc, grpc, xml-rpc etc etc etc.

Is there any rpc library that has support for macOS? Because so far whatever I’ve tried has only caused me more frustration. Please recommend some rpc c++ libraries for macOS.

Thanks in advance.