浏览代码

Added backwards compatibility for TVOS

Mario Hahn 9 年之前
父节点
当前提交
5bcdc54d0e
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      Masonry.podspec

+ 10 - 0
Masonry.podspec

@@ -16,9 +16,19 @@ Pod::Spec.new do |s|
     Masonry supports iOS and Mac OSX.
     Masonry supports iOS and Mac OSX.
   }
   }
 
 
+  pch_AF = <<-EOS
+    #ifndef TARGET_OS_IOS
+        #define TARGET_OS_IOS TARGET_OS_IPHONE
+    #endif
+    #ifndef TARGET_OS_TV
+        #define TARGET_OS_TV 0
+    #endif
+  EOS
+
   s.source_files = 'Masonry/*.{h,m}'
   s.source_files = 'Masonry/*.{h,m}'
 
 
   s.ios.frameworks = 'Foundation', 'UIKit'
   s.ios.frameworks = 'Foundation', 'UIKit'
+  s.tvos.frameworks = 'Foundation', 'UIKit'
   s.osx.frameworks = 'Foundation', 'AppKit'
   s.osx.frameworks = 'Foundation', 'AppKit'
 
 
   s.ios.deployment_target = '6.0' # minimum SDK with autolayout
   s.ios.deployment_target = '6.0' # minimum SDK with autolayout