React-native: 'RCTDevMenu.h' file not found,in RCTTVRemoteHandler.m

Created on 14 Sep 2017  ·  8Comments  ·  Source: facebook/react-native

Is this a bug report?

react-native/node_modules/react-native/React/Base/RCTTVRemoteHandler.m:25:9: fatal error: 'RCTDevMenu.h' file not found

import "RCTDevMenu.h"

    ^~~~~~~~~~~~~~

1 error generated.

Have you read the Contributing Guidelines?

(Write your answer here.)

Environment

  1. react-native -v:0.48.3
  2. node -v:v8.2.1
  3. npm -v:5.4.1
  4. yarn --version:0.23.4

Then, specify:

Steps to Reproduce

(Write your steps here:)

  1. pod install
    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 => [
'RCTImage',
'RCTNetwork',
'RCTText',
'RCTWebSocket',
# 添加其他你想在工程中使用的依赖。
]

end

  1. run~

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

(Write what happened. Add screenshots!)

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Locked

Most helpful comment

check if you have 'DevSupport' added, see

15775

https://github.com/facebook/react-native/issues/15775#issuecomment-327971300

All 8 comments

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

15775

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arunabha picture arunabha  ·  3Comments

axelg12 picture axelg12  ·  3Comments

josev55 picture josev55  ·  3Comments

anchetaWern picture anchetaWern  ·  3Comments

despairblue picture despairblue  ·  3Comments