| 1 |
source 'https://github.com/CocoaPods/Specs.git' |
| 2 |
platform :ios, '9.0' |
| 3 |
|
| 4 |
install! 'cocoapods', :deterministic_uuids => false |
| 5 |
|
| 6 |
# Location of gRPC's repo root relative to this file. |
| 7 |
GRPC_LOCAL_SRC = '../../../../..' |
| 8 |
|
| 9 |
# Install the dependencies in the main target plus all test targets. |
| 10 |
target 'CFStreamTests' do |
| 11 |
pod 'gRPC-Core', :path => GRPC_LOCAL_SRC |
| 12 |
pod 'gRPC-Core/Tests', :path => GRPC_LOCAL_SRC |
| 13 |
pod 'BoringSSL-GRPC', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c", :inhibit_warnings => true |
| 14 |
end |
| 15 |
|
| 16 |
post_install do |installer| |
| 17 |
installer.pods_project.targets.each do |target| |
| 18 |
target.build_configurations.each do |config| |
| 19 |
config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'YES' |
| 20 |
end |
| 21 |
|
| 22 |
# CocoaPods creates duplicated library targets of gRPC-Core when the test targets include |
| 23 |
# non-default subspecs of gRPC-Core. All of these library targets start with prefix 'gRPC-Core' |
| 24 |
# and require the same error suppresion. |
| 25 |
if target.name.start_with?('gRPC-Core') |
| 26 |
target.build_configurations.each do |config| |
| 27 |
# TODO(zyc): Remove this setting after the issue is resolved |
| 28 |
# GPR_UNREACHABLE_CODE causes "Control may reach end of non-void |
| 29 |
# function" warning |
| 30 |
config.build_settings['GCC_WARN_ABOUT_RETURN_TYPE'] = 'NO' |
| 31 |
# Abseil isn't free from the following warning |
| 32 |
config.build_settings['GCC_WARN_64_TO_32_BIT_CONVERSION'] = 'NO' |
| 33 |
end |
| 34 |
end |
| 35 |
end |
| 36 |
end |