Skip to content
Browse files

Import Availability.h before attempting to reference `__IPHONE_OS_VER…

…SION_MIN_REQUIRED`, else CoreServices will be imported instead of MobileCoreServices
  • Loading branch information...
1 parent 07270cd commit d8243673c20aaaf0542abe728e91c2a582a21d1b @blakewatters blakewatters committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 AFNetworking.podspec
View
1 AFNetworking.podspec
@@ -16,6 +16,7 @@ Pod::Spec.new do |s|
s.osx.frameworks = 'CoreServices', 'SystemConfiguration'
s.prefix_header_contents = <<-EOS
+#import <Availability.h>
#if __IPHONE_OS_VERSION_MIN_REQUIRED
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>

0 comments on commit d824367

Please sign in to comment.
Something went wrong with that request. Please try again.