react-native: can not open developer menu , iOS
cannot open developer menu in anyway,react-native: 0.59.8
,i have use_frameworks!
in Podfile, hardware keyboard is already connected, happens either in iOS simulator or device.( in android everything is fine )
React Native version:
- react native info
React Native Environment Info:
System:
OS: macOS 10.14.5
CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Memory: 47.24 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 12.3.1 - /usr/local/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 23, 28
Build Tools: 28.0.3
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.8 => 0.59.8
npmGlobalPackages:
react-native-cli: 2.0.1
- Podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'ReactNativeAppDemo' do
# Pods for ReactNativeAppDemo
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'RCTAnimation'
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'react-native-baidu-map', :podspec => '../node_modules/react-native-baidu-map/ios/react-native-baidu-map.podspec'
pod 'AppCenter/Crashes', '~> 2.0.1'
pod 'AppCenter/Analytics', '~> 2.0.1'
pod 'AppCenterReactNativeShared', '~> 2.0.0'
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
platform :ios, '9.0'
target 'ReactNativeAppDemoTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'ReactNativeAppDemo-tvOS' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for ReactNativeAppDemo-tvOS
target 'ReactNativeAppDemo-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
Steps To Reproduce
- install app in iOS simulator or device
command + d
orcommand + r
or shake device orhardware -- shake gesture
Describe what you expected to happen:
- the developer menu show up
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 42
- Comments: 19 (2 by maintainers)
Control + Cmd + Z (Menu:
Device | Shake ^⌘Z
)Selecting
Hardware > Keyboard > Send Keyboard Shortcuts to Device
fixed this issue for meI had a similar issue though the shake gesture worked for me. Not sure this is the reason but it happened after upgrading xcode. And the reason seemed to be that the hardware keyboard was disconnected. When pressing SHIFT + COMMAND + K to connect the hardware keyboard the developer menu was reachable with COMMAND + D again.
or in menu:
I fixed mine by clicking in I/O > input and Send Keyboard input to Device
Jesus effing christ this took me way too long to find. It used to me Cmd+D on IOS was it not?! The devil in this whole thing is that Cmd+D still works sometimes and it’s just so incredibly frustrating but Ctrl+Cmd+Z works every time. Thank you!
Can you check you’re scheme is running in Debug mode, if you’re in Release mode you won’t be able to access the dev menu
me too, i finally removed
use_frameworks!
and the library that needuse_frameworks!
, then the developer menu come backThis worked, I was trying to do
Cmd + D
before. Although weirdly enough I noticed that if I do a screenshot first usingCmd + S
then I can doCmd + D
after that to open the dev menuSimulator => Device => Restart
For anyone not sure how to check this: see https://stackoverflow.com/a/28059831 - as of xcode 12.4 go to Product > Scheme > Edit Scheme, then in the Run vertical tab, Info horizontal tab, check Build configuration
How to reproduce:
react-native init Example --version 0.59.8
cd Example/ios
pod init
pod install
cd ../ && react-native run-ios
Dev menu shows with shake gesture but not with keyboard shortcut.
react-native info
@KingAmo and others! Guys, its not good to fix dev menu accessibility this hardcore and unreliable way! I anyway need to use_frameworks as so other ones need as! So please anyone help to decide how to fix this WITHOUT removing use_frameworks keyword from pods
This resolved my issue.
I have the same issue, developer menu is not showing in iOS.
I can only fix it by removing
use_frameworks
in pods