From 43c4710a809fa2e4c30f2cdef2c56a70518974e1 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Thu, 6 Jul 2017 20:51:49 -0700 Subject: Fix the nanopb's header include issue --- templates/gRPC-Core.podspec.template | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates/gRPC-Core.podspec.template') diff --git a/templates/gRPC-Core.podspec.template b/templates/gRPC-Core.podspec.template index 538e1e6490..da0751ff6a 100644 --- a/templates/gRPC-Core.podspec.template +++ b/templates/gRPC-Core.podspec.template @@ -178,4 +178,9 @@ 'test/core/util/port.c', 'test/core/util/port_server_client.{c,h}' end + + # TODO (mxyan): Instead of this hack, add include path "third_party" to C core's include path? + s.prepare_command = <<-END_OF_COMMAND + find src/core/ -type f -exec sed -E -i '.back' 's;#include "third_party/nanopb/(.*)";#include ;g' {} \\\; + END_OF_COMMAND end -- cgit v1.2.3