Ver Fonte

Added backwards compatibility for TVOS

Mario Hahn há 9 anos atrás
pai
commit
5bcdc54d0e
1 ficheiros alterados com 10 adições e 0 exclusões
  1. 10 0
      Masonry.podspec

+ 10 - 0
Masonry.podspec

@@ -16,9 +16,19 @@ Pod::Spec.new do |s|
     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.ios.frameworks = 'Foundation', 'UIKit'
+  s.tvos.frameworks = 'Foundation', 'UIKit'
   s.osx.frameworks = 'Foundation', 'AppKit'
 
   s.ios.deployment_target = '6.0' # minimum SDK with autolayout