'Can't open dev menu via CMD+D or reload via CMD+R any longer
I can't open my dev menu via CMD+D or reload via CMD+R any longer. It just stopped working without me knowingly changing something.
Some more info:
- Shake gesture still works, but not always
- Live reload works only when shake gesture is working
- Independent of build via
react-native run-iosor via xCode - rn22.0 and rn23.0-rc
- same behaviour upon
react-native init newProject - I use the workspace file
What I have tried to fix it:
- tried other simulators
- downgrade/upgrades by a version
- ran
react-native upgradeand saidyesto every overwrite - complete reinstall of all NPM modules
- Reset the simulator
- clean build
- reboot
Solution 1:[1]
From Menu Bar, I/O -> Input -> Send Keyboard Input to Device. It really helps.
Solution 2:[2]
I/O -> Input -> Send Keyboard Input to Device is not working properly always for me.
I use Device -> Shake to open the dev menu using the following shortcut:
CMD+CTR+Z
Solution 3:[3]
This is indeed really annoying. I figured out a solution I haven't seen here yet, and hope it helps anyone. Go to I/O -> Input -> Send Keyboard Input to Device. And you'll see next time you press CMD+D or CMD+R it'll work. However, it somehow resets this every time. To overcome this, simply add a system keyboard shortcut:
Send Keyboard Input to Device => CMD+D
Now every time you press the shortcut, it'll also invoke that command to make sure the shortcut is sent to the app.
See here for how to add system keyboard shortcut if need be.
Solution 4:[4]
I had the same issue with IOS Simulator. First check your build type ie it is debug or release. For this
i) Open your project in XCode and go to
Product -> Scheme -> Edit Scheme and check the Build Configuration if it is Release then change it to the Debug because cmd+d or cmd+r commands are run only for debug mode release.
ii) If Build Configuration is already set to Debug then Restart your simulator by going to Hardware -> Restart This will resolve your issue.
Solution 5:[5]
In terminal, you can press "D" like below.
Loading dependency graph, done.
To reload the app press "r"
To open developer menu press "d"
info Opening developer menu...
Solution 6:[6]
One thing that works for me on Mac is to press the key combination with Option first.
- So to restart: Opt + R followed by Cmd + R
- Debug remote JS: Opt + D followed by Cmd + D
Absolutely no idea why it works, but it works for me (MacBook Pro with touchbar, Expo 37 / React Native 61)
Solution 7:[7]
If you are using a custom configuration other than Debug and you're using Cocoapods, make sure the Podfile specifies that that configuration should be a debug configuration. By default it is assumed to be a release configuration. Add the following line to the top of your Podfile (assuming your custom configuration is named "Staging"):
For pre-1.0 Cocoapods use xcodeproj:
xcodeproj 'MyProject', 'Staging' => :debug
For Cocoapods 1.0+ use project:
project 'MyProject', 'Staging' => :debug
Then, to get the Pods.xcodeproj file to update:
rm -rf Pods/
pod install
This will ensure the DEBUG=1 Preprocessor Macro is set for the Staging configuration for the Pods project.
Solution 8:[8]
I had the same issue with expo + VSCode on windows.
Shaking the device didn't open the developers menu anymore.
I was able to solve the issue after an hour of frustration by openning "settings.json" file under ".expo" folder in VSCode and add the line "dev": true.
Solution 9:[9]
Solution 10:[10]
I've had a similar issue (however on an Android emulator on a Windows machine, but I'll just post it here if anyone else has that issue). Basically it happened after enabling/disabling num lock. Try to toggle your num lock and see if that helps?
Solution 11:[11]
for people who have two or more languages in your keyboard, make sure that you're setting the language to English before you hit CMD + D or CMD + R.
for me, I have Arabic and English languages and I was hitting CMD + ? not CMD + D
Solution 12:[12]
?Connect Hardware Keyboard?'s always not working, either
try I/O -> Input -> Send Keyboard Input to Device
Solution 13:[13]
? Control + ? Command + Z shakes IOS simulator and opens React Native Debug Menu
also try this on Simulator menu
I/O > Keyboard > Connect Hardware Keyboard
Solution 14:[14]
control + command + z pops up the React Native Debug Menu
Solution 15:[15]
I think Simulator -> Device -> Restart fixes my issue
Solution 16:[16]
please use the following API : /service/xusers/users/305 instead of /service/xusers/secure/users/305
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow

