3 install! 'cocoapods', :deterministic_uuids => false
5 # Default to use framework, so that providing no 'FRAMEWORK' env parameter works consistently
6 # for all Samples, specifically because Swift only supports framework.
7 # Only effective for examples/
8 use_frameworks! if ENV['FRAMEWORKS'] != 'NO'
10 ROOT_DIR = '../../../..'
12 target 'InterceptorSample' do
13 pod 'gRPC-ProtoRPC', :path => ROOT_DIR
14 pod 'gRPC', :path => ROOT_DIR
15 pod 'gRPC-Core', :path => ROOT_DIR
16 pod 'gRPC-RxLibrary', :path => ROOT_DIR
17 pod 'RemoteTest', :path => "../RemoteTestClient"
18 pod '!ProtoCompiler-gRPCPlugin', :path => "#{ROOT_DIR}/src/objective-c"
21 pre_install do |installer|
22 grpc_core_spec = installer.pod_targets.find{|t| t.name.start_with?('gRPC-Core')}.root_spec
24 src_root = "$(PODS_TARGET_SRCROOT)"
25 grpc_core_spec.pod_target_xcconfig = {
26 'GRPC_SRC_ROOT' => src_root,
27 'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(GRPC_SRC_ROOT)/include"',
28 'USER_HEADER_SEARCH_PATHS' => '"$(GRPC_SRC_ROOT)"',
29 # If we don't set these two settings, `include/grpc/support/time.h` and
30 # `src/core/lib/gpr/string.h` shadow the system `<time.h>` and `<string.h>`, breaking the
32 'USE_HEADERMAP' => 'NO',
33 'ALWAYS_SEARCH_USER_PATHS' => 'NO',