Make C++ cocoapods example work

pull/14480/head
Muxi Yan 7 years ago
parent b19c525796
commit 6ef0159e8e
  1. 6
      examples/cpp/helloworld/cocoapods/HelloWorldCpp/ViewController.mm
  2. 2
      gRPC-C++.podspec
  3. 2
      templates/gRPC-C++.podspec.template

@ -17,9 +17,9 @@
*/
#import "ViewController.h"
#import <grpc++/grpc++.h>
#include <grpc++/generic/generic_stub.h>
#include <grpc++/generic/async_generic_service.h>
#import <grpcpp/grpcpp.h>
#include <grpcpp/generic/generic_stub.h>
#include <grpcpp/generic/async_generic_service.h>
static void* tag(int i) { return (void*)(intptr_t)i; }

@ -69,6 +69,8 @@ Pod::Spec.new do |s|
s.default_subspecs = 'Interface', 'Implementation'
s.header_mappings_dir = 'include/grpcpp'
s.subspec 'Interface' do |ss|
ss.header_mappings_dir = 'include/grpcpp'

@ -176,6 +176,8 @@
s.default_subspecs = 'Interface', 'Implementation'
s.header_mappings_dir = 'include/grpcpp'
s.subspec 'Interface' do |ss|
ss.header_mappings_dir = 'include/grpcpp'

Loading…
Cancel
Save