Skip to content

Commit

Permalink
Disable availability warnings.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bdorfman-stripe committed Nov 1, 2017
1 parent 364fe69 commit f7d9576
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Stripe.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Stripe/BuildConfigurations/StripeiOS-Shared.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down
1 change: 1 addition & 0 deletions Tests/installation_tests/cocoapods/with_frameworks/Podfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use_frameworks!

target 'CocoapodsTest' do
platform :ios, '8.0'
use_frameworks!
pod 'Stripe', path: '../../../..'
end

0 comments on commit f7d9576

Please sign in to comment.