Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'RCTDevMenu.h' file not found,in RCTTVRemoteHandler.m #15936

Closed
kaelinda opened this issue Sep 14, 2017 · 8 comments
Closed

'RCTDevMenu.h' file not found,in RCTTVRemoteHandler.m #15936

kaelinda opened this issue Sep 14, 2017 · 8 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@kaelinda
Copy link

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:

  • Target Platform:iOS
  • Development Operating System:Mac os 10.12.6
  • Build tools:Xcode

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.)

@kaelinda
Copy link
Author

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

@kaelinda
Copy link
Author

miss the RCTDevMenu.h

@kaelinda
Copy link
Author

node_modules/react-native/React/Modules

old react-native version had the RCTDevMenu.h ,
but now, react-native 0.48.3 not cantains .

@dkstar88
Copy link

check if you have 'DevSupport' added, see
#15775
#15775 (comment)

@samuela
Copy link

samuela commented Sep 16, 2017

Just came across this exact issue. Adding DevSupportto the subspecs list did the trick.

@kaelinda
Copy link
Author

DevSupport is halpful

@kaelinda
Copy link
Author

pod 'React', :path => './react-native/node_modules/react-native', :subspecs => [ 'Core', 'DevSupport', 'RCTText', 'RCTNetwork', 'RCTWebSocket', ]

@MaheshNandam
Copy link

Thanks @Kaelzzs ,

pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core', 'DevSupport', 'RCTText', 'RCTNetwork', 'RCTWebSocket'
]

This works for me.

@facebook facebook locked as resolved and limited conversation to collaborators Sep 17, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants