From f7d9576acadade1f3919ee79f777835c76985157 Mon Sep 17 00:00:00 2001 From: Brian Dorfman Date: Wed, 1 Nov 2017 15:59:00 -0700 Subject: [PATCH] Disable availability warnings. This warning only knows about the new `@available` objc language feature (that matches the Swift one). All the cases it catches are already blocked by other methods, like selector testing, so it's not actually a problem. We can't add `@available` calls until we drop Xcode 8 support so disabling temporarily seems the best solution. --- Stripe.podspec | 1 + Stripe/BuildConfigurations/StripeiOS-Shared.xcconfig | 2 +- Tests/installation_tests/cocoapods/with_frameworks/Podfile | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Stripe.podspec b/Stripe.podspec index 23ac7097b00..c126ee95e21 100644 --- a/Stripe.podspec +++ b/Stripe.podspec @@ -14,4 +14,5 @@ Pod::Spec.new do |s| s.public_header_files = 'Stripe/PublicHeaders/*.h' s.source_files = 'Stripe/PublicHeaders/*.h', 'Stripe/*.{h,m}' s.ios.resource_bundle = { 'Stripe' => 'Stripe/Resources/**/*' } + s.compiler_flags = '-Wno-unguarded-availability' end diff --git a/Stripe/BuildConfigurations/StripeiOS-Shared.xcconfig b/Stripe/BuildConfigurations/StripeiOS-Shared.xcconfig index 2093f6dbf2b..6488245ccdb 100644 --- a/Stripe/BuildConfigurations/StripeiOS-Shared.xcconfig +++ b/Stripe/BuildConfigurations/StripeiOS-Shared.xcconfig @@ -25,7 +25,7 @@ CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_ASSIGN_ENUM = YES CLANG_WARN_DOCUMENTATION_COMMENTS = YES - +CLANG_WARN_UNGUARDED_AVAILABILITY = NO // Code Signing Identity // diff --git a/Tests/installation_tests/cocoapods/with_frameworks/Podfile b/Tests/installation_tests/cocoapods/with_frameworks/Podfile index 530697b2462..718fc45ef16 100644 --- a/Tests/installation_tests/cocoapods/with_frameworks/Podfile +++ b/Tests/installation_tests/cocoapods/with_frameworks/Podfile @@ -1,6 +1,7 @@ use_frameworks! target 'CocoapodsTest' do + platform :ios, '8.0' use_frameworks! pod 'Stripe', path: '../../../..' end