• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1install! 'cocoapods', :deterministic_uuids => false
2platform :ios, '9.0'
3
4# Location of gRPC's repo root relative to this file.
5GRPC_LOCAL_SRC = '../../../..'
6
7target 'ConnectivityTestingApp' do
8  pod 'gRPC/CFStream', :path => GRPC_LOCAL_SRC
9  pod 'gRPC-Core/CFStream-Implementation', :path => GRPC_LOCAL_SRC
10  pod 'gRPC-ProtoRPC/CFStream', :path => GRPC_LOCAL_SRC
11  pod 'gRPC-RxLibrary', :path => GRPC_LOCAL_SRC
12  pod 'Protobuf', :path => "#{GRPC_LOCAL_SRC}/third_party/protobuf"
13  pod 'BoringSSL-GRPC', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c"
14end
15
16pre_install do |installer|
17  # This is the gRPC-Core podspec object, as initialized by its podspec file.
18  grpc_core_spec = installer.pod_targets.find{|t| t.name == 'gRPC-Core'}.root_spec
19
20  # Copied from gRPC-Core.podspec, except for the adjusted src_root:
21  src_root = "$(PODS_ROOT)/../#{GRPC_LOCAL_SRC}"
22  grpc_core_spec.pod_target_xcconfig = {
23    'GRPC_SRC_ROOT' => src_root,
24    'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(GRPC_SRC_ROOT)/include"',
25    'USER_HEADER_SEARCH_PATHS' => '"$(GRPC_SRC_ROOT)"',
26    # If we don't set these two settings, `include/grpc/support/time.h` and
27    # `src/core/lib/gpr/string.h` shadow the system `<time.h>` and `<string.h>`, breaking the
28    # build.
29    'USE_HEADERMAP' => 'NO',
30    'ALWAYS_SEARCH_USER_PATHS' => 'NO',
31  }
32end
33