From 7f98028e71186c6f5ef92e50daa83aa99d93a02d Mon Sep 17 00:00:00 2001 From: Tomas Roos Date: Fri, 6 Jan 2017 17:09:39 -0800 Subject: [PATCH] Fixes podspec for master #11640 Summary: Currently the master Podspec is broken because tvOS files are being included, to avoid this compile error the file is being excluded. https://github.com/facebook/react-native/commit/c92ad5f6ae74c1d398c7cd93d5c4c50da0ca0430 Thats the commit which introduced the breakage anything later that that will fail. Aka RN 0.41 will fail because of this. **Test plan (required)** Tested on new project against master // cc ide Closes https://github.com/facebook/react-native/pull/11667 Differential Revision: D4375453 Pulled By: ericvicenti fbshipit-source-id: 035cdb8ef36054b40d1aaf59551cdc2e16f0cb19 --- React.podspec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/React.podspec b/React.podspec index d7e4ee0e23f..a8465017f71 100644 --- a/React.podspec +++ b/React.podspec @@ -34,11 +34,16 @@ Pod::Spec.new do |s| ss.dependency 'React/yoga' ss.dependency 'React/cxxreact' ss.source_files = "React/**/*.{c,h,m,mm,S}" - ss.exclude_files = "**/__tests__/*", "IntegrationTests/*", "ReactCommon/yoga/*" + ss.exclude_files = "**/__tests__/*", "IntegrationTests/*", "React/**/RCTTVView.*", "ReactCommon/yoga/*" ss.frameworks = "JavaScriptCore" ss.libraries = "stdc++" end + s.subspec 'tvOS' do |ss| + ss.dependency 'React/Core' + ss.source_files = "React/**/RCTTVView.{h, m}" + end + s.subspec 'jschelpers' do |ss| ss.source_files = 'ReactCommon/jschelpers/{JavaScriptCore,JSCWrapper}.{cpp,h}' ss.header_dir = 'jschelpers'