Ver código fonte

add osx support

ibireme 9 anos atrás
pai
commit
dd6e7309ad
2 arquivos alterados com 7 adições e 3 exclusões
  1. 6 2
      YYModel.podspec
  2. 1 1
      YYModel/YYModel.h

+ 6 - 2
YYModel.podspec

@@ -6,14 +6,18 @@ Pod::Spec.new do |s|
   s.authors      = { 'ibireme' => 'ibireme@gmail.com' }
   s.social_media_url = 'http://blog.ibireme.com'
   s.homepage     = 'https://github.com/ibireme/YYModel'
-  s.platform     = :ios, '6.0'
+
   s.ios.deployment_target = '6.0'
+  s.osx.deployment_target = '10.7'
+  s.watchos.deployment_target = '2.0'
+  s.tvos.deployment_target = '9.0'
+
   s.source       = { :git => 'https://github.com/ibireme/YYModel.git', :tag => s.version.to_s }
   
   s.requires_arc = true
   s.source_files = 'YYModel/*.{h,m}'
   s.public_header_files = 'YYModel/*.{h}'
   
-  s.frameworks = 'UIKit', 'CoreFoundation'
+  s.frameworks = 'Foundation', 'CoreFoundation'
 
 end

+ 1 - 1
YYModel/YYModel.h

@@ -9,7 +9,7 @@
 //  LICENSE file in the root directory of this source tree.
 //
 
-#import <UIKit/UIKit.h>
+#import <Foundation/Foundation.h>
 
 #if __has_include(<YYModel/YYModel.h>)
 FOUNDATION_EXPORT double YYModelVersionNumber;