From c825f4234724b448dbb576c1209fec3a8510dda8 Mon Sep 17 00:00:00 2001 From: Jorge Canizales Date: Mon, 28 Sep 2015 21:43:48 -0700 Subject: [PATCH 1/3] Update versions in Podspec to 0.11.1 --- gRPC.podspec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gRPC.podspec b/gRPC.podspec index 4edc3e5dc7a..69c370e2c0c 100644 --- a/gRPC.podspec +++ b/gRPC.podspec @@ -36,14 +36,15 @@ Pod::Spec.new do |s| s.name = 'gRPC' - s.version = '0.11.0' + version = '0.11.1' + s.version = version s.summary = 'gRPC client library for iOS/OSX' s.homepage = 'http://www.grpc.io' s.license = 'New BSD' s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' } - # s.source = { :git => 'https://github.com/grpc/grpc.git', - # :tag => 'release-0_11_0-objectivec-0.11.0' } + s.source = { :git => 'https://github.com/grpc/grpc.git', + :tag => "release-#{version.gsub(/\./, '_')}-objectivec-#{version}" } s.ios.deployment_target = '7.1' s.osx.deployment_target = '10.9' From 7069da2fe205905974ba5c7c49254d8478691a57 Mon Sep 17 00:00:00 2001 From: Jorge Canizales Date: Tue, 29 Sep 2015 11:29:42 -0700 Subject: [PATCH 2/3] Repeat https://github.com/grpc/grpc/issues/3049 for OSX --- include/grpc/support/port_platform.h | 2 -- src/core/iomgr/udp_server.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/grpc/support/port_platform.h b/include/grpc/support/port_platform.h index d09815557ec..69ff18eed6d 100644 --- a/include/grpc/support/port_platform.h +++ b/include/grpc/support/port_platform.h @@ -174,8 +174,6 @@ #endif /* _LP64 */ #elif defined(__APPLE__) #include -/* Provides IPV6_RECVPKTINFO */ -#define __APPLE_USE_RFC_3542 #ifndef _BSD_SOURCE #define _BSD_SOURCE #endif diff --git a/src/core/iomgr/udp_server.c b/src/core/iomgr/udp_server.c index 6429c38b289..3aec1e871c6 100644 --- a/src/core/iomgr/udp_server.c +++ b/src/core/iomgr/udp_server.c @@ -235,7 +235,7 @@ static int prepare_socket(int fd, const struct sockaddr *addr, int addr_len) { rc = setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &get_local_ip, sizeof(get_local_ip)); if (rc == 0 && addr->sa_family == AF_INET6) { -#if !TARGET_OS_IPHONE +#if !defined(__APPLE__) rc = setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &get_local_ip, sizeof(get_local_ip)); #endif From 423f412ab8bda7704d8f8376b28e6d80cda505a1 Mon Sep 17 00:00:00 2001 From: Jorge Canizales Date: Tue, 29 Sep 2015 14:11:44 -0700 Subject: [PATCH 3/3] The podspec is generated! --- templates/gRPC.podspec.template | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/gRPC.podspec.template b/templates/gRPC.podspec.template index b1de0d7102f..d1b55adabf9 100644 --- a/templates/gRPC.podspec.template +++ b/templates/gRPC.podspec.template @@ -63,14 +63,16 @@ %> Pod::Spec.new do |s| s.name = 'gRPC' - s.version = '0.11.0' + version = '0.11.1' + s.version = version s.summary = 'gRPC client library for iOS/OSX' s.homepage = 'http://www.grpc.io' s.license = 'New BSD' s.authors = { 'The gRPC contributors' => 'grpc-packages@google.com' } - - # s.source = { :git => 'https://github.com/grpc/grpc.git', - # :tag => 'release-0_11_0-objectivec-0.11.0' } + + s.source = { :git => 'https://github.com/grpc/grpc.git', + :tag => "release-#{version.gsub(/\./, '_')}-objectivec-#{version}" } + s.ios.deployment_target = '7.1' s.osx.deployment_target = '10.9'