Import Availability.h before attempting to reference __IPHONE_OS_VERSION_MIN_REQUIRED, else CoreServices will be imported instead of MobileCoreServices

This commit is contained in:
Blake Watters 2012-10-05 15:06:12 -04:00
parent 07270cd20c
commit d8243673c2

View file

@ -16,6 +16,7 @@ Pod::Spec.new do |s|
s.osx.frameworks = 'CoreServices', 'SystemConfiguration' s.osx.frameworks = 'CoreServices', 'SystemConfiguration'
s.prefix_header_contents = <<-EOS s.prefix_header_contents = <<-EOS
#import <Availability.h>
#if __IPHONE_OS_VERSION_MIN_REQUIRED #if __IPHONE_OS_VERSION_MIN_REQUIRED
#import <SystemConfiguration/SystemConfiguration.h> #import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h> #import <MobileCoreServices/MobileCoreServices.h>