Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native developer Menu not loading

Developer menu in ios simulator will not launch with either cmd + D or cmd + ctrl + z

  • things i've checked (in no order) :

    • cmd + r works properly
    • myApp and myAppTests schemes are set to debug mode
    • Slow Animations is off
    • Hardware > Keyboard > Connect Hardware Keyboard is on
    • watchman 4.7.0 is installed with brew install watchman (--HEAD needed libtoolize, in which brew changed to glibtoolize, therefore ./autogen couldn't find it )
    • Cleaned out Derived Data folder
    • Created new scheme for target
    • Upgraded XCode to 8.2.1 -> 8.3.1
    • react-native start --clear-cache starts successfully, react-native run-ios builds successfully
  • Other Issues

    • nw_connection_get_connected_socket_block_invoke 1262 Connection has no connected handler run indefinitely
    • react-native run-ios outputs

    Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/zelosApp.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not ExistCommand failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/zelosApp.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist

  • Versions

    • react-native = "^0.43.3"
    • watchman = "4.7.0"
    • xcode = "8.3.1"

Any tips / questions would be greatly appreciated!

like image 453
Chris Avatar asked Apr 18 '17 12:04

Chris


People also ask

How do I open Developer menu in iOS React Native?

You can access the developer menu by shaking your device or by selecting "Shake Gesture" inside the Hardware menu in the iOS Simulator. You can also use the ⌘D keyboard shortcut when your app is running in the iOS Simulator, or ⌘M when running in an Android emulator on macOS and Ctrl+M on Windows and Linux.

How do I run React Native apps in debug mode?

In App Developer MenuOn Android emulator, you need to press command + M. Debug JS Remotely − Used for activating debugging inside browser developer console. Enable Live Reload − Used for enabling live reloading whenever your code is saved. The debugger will open at localhost:8081/debugger-ui.

How do I open console in React Native?

Just run react-native log-ios or react-native log-android on the command line inside your project folder. And when you open the Remote JS Debugging, you have to press option+command+i and check the console.

How do you inspect in React Native?

By default, React Native supports ChromeDev tools through its remote debugging capability. When your app is running on Android Emulator, press Ctrl+M on Windows or Cmd+M on Mac to access the in-app developer menu. If it's running on a real device, then you just need to shake your device.


1 Answers

This happens to me too once in a while, and I have not been able to figure out why. However, one workaround is to select Device -> Shake in the simulator menu.

like image 85
Henrik Avatar answered Oct 19 '22 22:10

Henrik