React-native: 0.52.0 'RCTTVRemoteHandler.h' file not found

Created on 17 Jan 2018  Â·  5Comments  Â·  Source: facebook/react-native

Hi!

I am trying to run my app on React Native 0.52.0
I get this error
2018-01-17_19-30-10

My podfile is
`# You Podfile should look similar to this file. React Native currently does not support use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.0'

Change 'AirMapsExplorer' to match the target in your Xcode project.

target 'clcorp' do

pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga/yoga.podspec'
pod 'React', path: '../node_modules/react-native', :subspecs => [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'DevSupport'
]

pod 'GoogleMaps' # <~~ remove this line if you do not want to support GoogleMaps on iOS
pod 'react-native-maps', path: '../'
pod 'react-native-google-maps', path: '../' # <~~ if you need GoogleMaps support on iOS

pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'

pod 'ReactNativePermissions', :path => '../node_modules/react-native-permissions'
end

post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-google-maps'
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
if target.name == 'yoga'
target.build_configurations.each do |config|
config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'NO'
config.build_settings['GCC_WARN_64_TO_32_BIT_CONVERSION'] = 'NO'
end
end
end
end`

Any ideas ?
Thx

Ran Commands Locked

Most helpful comment

@Clcll
Check #17027

Try to add 'tvOS' to your react native subspecs, like below:

pod 'React', :path => '../tangguo/node_modules/react-native', :subspecs => [
    'Core',
    'tvOS', // here
    ...
]

It works well for me.

All 5 comments

@facebook-github-bot no-template

Hey @Clcll, thanks for posting this! It looks like your issue is missing some required information. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce your issue. I am going to close this, but please feel free to open a new issue with the additional information provided. Thanks!

How to Contribute • What to Expect from Maintainers

@Clcll
Check #17027

Try to add 'tvOS' to your react native subspecs, like below:

pod 'React', :path => '../tangguo/node_modules/react-native', :subspecs => [
    'Core',
    'tvOS', // here
    ...
]

It works well for me.

Not too happy about adding TvOS but it did work for me also.

+1 Not too happy about adding TvOS

Was this page helpful?
0 / 5 - 0 ratings