Podfile 1.4 KB

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