aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/gRPC-Core.podspec.template
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gRPC-Core.podspec.template')
-rw-r--r--templates/gRPC-Core.podspec.template5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/gRPC-Core.podspec.template b/templates/gRPC-Core.podspec.template
index cfc13cf4dd..616f2cbbff 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 <nanopb/\\1>;g' {} \\\;
+ END_OF_COMMAND
end