From 59bb9d7d5616c4ba722d18e9158db6c966b87129 Mon Sep 17 00:00:00 2001 From: Jorge Canizales Date: Mon, 22 Jun 2015 19:04:15 -0700 Subject: [PATCH] Have Cocoapods rename includes in the core wrapper Fixes https://github.com/grpc/grpc/issues/2194 . --- gRPC.podspec | 4 ++-- src/objective-c/GRPCClient/GRPCCall.m | 2 +- templates/gRPC.podspec.template | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gRPC.podspec b/gRPC.podspec index 2d3be884032..7d1c407200d 100644 --- a/gRPC.podspec +++ b/gRPC.podspec @@ -82,7 +82,7 @@ Pod::Spec.new do |s| DIR_TIME="grpc/support" BAD_TIME="$DIR_TIME/time.h" GOOD_TIME="$DIR_TIME/grpc_time.h" - grep -rl "$BAD_TIME" grpc src/core | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g + grep -rl "$BAD_TIME" grpc src/core src/objective-c/GRPCClient | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g if [ -f "include/$BAD_TIME" ]; then mv -f "include/$BAD_TIME" "include/$GOOD_TIME" @@ -91,7 +91,7 @@ Pod::Spec.new do |s| DIR_STRING="src/core/support" BAD_STRING="$DIR_STRING/string.h" GOOD_STRING="$DIR_STRING/grpc_string.h" - grep -rl "$BAD_STRING" grpc src/core | xargs sed -i '' -e s@$BAD_STRING@$GOOD_STRING@g + grep -rl "$BAD_STRING" grpc src/core src/objective-c/GRPCClient | xargs sed -i '' -e s@$BAD_STRING@$GOOD_STRING@g if [ -f "$BAD_STRING" ]; then mv -f "$BAD_STRING" "$GOOD_STRING" diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index a9625a17997..77eebeff761 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -34,7 +34,7 @@ #import "GRPCCall.h" #include -#include +#include #import "GRPCMethodName.h" #import "private/GRPCChannel.h" diff --git a/templates/gRPC.podspec.template b/templates/gRPC.podspec.template index f59b6a9ab16..093df72eae0 100644 --- a/templates/gRPC.podspec.template +++ b/templates/gRPC.podspec.template @@ -113,7 +113,7 @@ Pod::Spec.new do |s| DIR_TIME="grpc/support" BAD_TIME="$DIR_TIME/time.h" GOOD_TIME="$DIR_TIME/grpc_time.h" - grep -rl "$BAD_TIME" grpc src/core | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g + grep -rl "$BAD_TIME" grpc src/core src/objective-c/GRPCClient | xargs sed -i '' -e s@$BAD_TIME@$GOOD_TIME@g if [ -f "include/$BAD_TIME" ]; then mv -f "include/$BAD_TIME" "include/$GOOD_TIME" @@ -122,7 +122,7 @@ Pod::Spec.new do |s| DIR_STRING="src/core/support" BAD_STRING="$DIR_STRING/string.h" GOOD_STRING="$DIR_STRING/grpc_string.h" - grep -rl "$BAD_STRING" grpc src/core | xargs sed -i '' -e s@$BAD_STRING@$GOOD_STRING@g + grep -rl "$BAD_STRING" grpc src/core src/objective-c/GRPCClient | xargs sed -i '' -e s@$BAD_STRING@$GOOD_STRING@g if [ -f "$BAD_STRING" ]; then mv -f "$BAD_STRING" "$GOOD_STRING"