React-native: 'Shake for dev menu' doesn't work after pod install 'React'

Created on 13 Oct 2016  路  11Comments  路  Source: facebook/react-native

Issue Description

I cannot show up dev menu, after pod install 'React'

Steps to Reproduce / Code Snippets

  1. react-native init [Project]
  2. cd ios/
  3. pod init and fill it with pod React
...
 pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'RCTText',
    'RCTWebSocket', # needed for debugging
  ]
...
  1. pod install
  2. open with [Project].workspace, and bulid & run on device (iPhone)
  3. Shake, but no response here

    Expected Results

I want to show dev menu for debugging,

But I cannot open dev menu even on newly init project.

How can I open it? Anyone who is in this issue here?

Additional Information

  • React Native version: 0.35.0
  • Platform(s) (iOS, Android, or both?): iOS
  • Operating System (macOS, Linux, or Windows?): Mac
Locked

Most helpful comment

For those who upgraded to RN 0.43-rc and can't use the Dev Menu anymore when RN is installed with CocoaPods, you now have to explicitly add the DevSupport subspec in your Podfile.

Change was introduced by https://github.com/facebook/react-native/pull/12602

All 11 comments

@mazicky Any luck resolving this issue?

@seanders Yes. When I use 'React' with cocoapod, this issue happens.

I used cocoapod-React because of other pod-library's dependency.

So I manually import other libraries that i use without cocoapod.

@mazicky I don't think I understood correctly, did you stopped using Pods? Or did you manually imported React?

@Fatxx I still use Pods. but I deleted 'React' and 'React'-dependency-libraries on Podfile.
I'm using React which is automatically imported when I initialize the project with react-native.

@mazicky thanks

Thank you so much - this has been driving me nuts for days!
Just commented out the React pod in my podfile, reran "pod install" and reran my app.
Shake the phone and bam! menu.

@roocell I glad to help you with my solution.

But it will be an issue when we use Pod-React dependency library.

I hope this will be fixed.

@mazicky sorry, but I'm confused as to what to do after removing React from my podfile.

For those who upgraded to RN 0.43-rc and can't use the Dev Menu anymore when RN is installed with CocoaPods, you now have to explicitly add the DevSupport subspec in your Podfile.

Change was introduced by https://github.com/facebook/react-native/pull/12602

This and #13127 are duplicates.

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!

If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

Was this page helpful?
0 / 5 - 0 ratings