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:
parent
07270cd20c
commit
d8243673c2
1 changed files with 1 additions and 0 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue