react-native/node_modules/react-native/React/Base/RCTTVRemoteHandler.m:25:9: fatal error: 'RCTDevMenu.h' file not found
^~~~~~~~~~~~~~
1 error generated.
(Write your answer here.)
react-native -v:0.48.3node -v:v8.2.1npm -v:5.4.1yarn --version:0.23.4Then, specify:
(Write your steps here:)
inhibit_all_warnings!
target "RNOC" do
pod 'Yoga', :path => '../react-native/node_modules/react-native/ReactCommon/yoga'
pod 'React', :path => '../react-native/node_modules/react-native', :subspecs => [
'RCTImage',
'RCTNetwork',
'RCTText',
'RCTWebSocket',
# 添加其他你想在工程中使用的依赖。
]
end
(Write what you thought would happen.)
(Write what happened. Add screenshots!)
(Paste the link to an example project and exact instructions to reproduce the issue.)
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
inhibit_all_warnings!
target "RNOC" do
pod 'Yoga', :path => './react-native/node_modules/react-native/ReactCommon/yoga'
pod 'React', :path => './react-native/node_modules/react-native', :subspecs =>
[
'Core',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
]
end
miss the RCTDevMenu.h
node_modules/react-native/React/Modules
old react-native version had the RCTDevMenu.h,
but now, react-native 0.48.3 not cantains .
check if you have 'DevSupport' added, see
https://github.com/facebook/react-native/issues/15775#issuecomment-327971300
Just came across this exact issue. Adding DevSupportto the subspecs list did the trick.
DevSupport is halpful
pod 'React', :path => './react-native/node_modules/react-native', :subspecs =>
[
'Core',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
]
Thanks @Kaelzzs ,
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core', 'DevSupport', 'RCTText', 'RCTNetwork', 'RCTWebSocket'
]
This works for me.
Most helpful comment
check if you have 'DevSupport' added, see
15775
https://github.com/facebook/react-native/issues/15775#issuecomment-327971300