当按下 ⌘ + d 时,调试菜单不会出现

When press ⌘ + d debug menu wont appear

在我的 React Native 项目中,当我按下

⌘ + d debug menu won't show up The problem is the splashScreen won't hide is there any way to debug?

有时是因为您的应用处于发布模式。

尝试以下步骤。

为了调试应用程序,请确保您的构建处于发布模式而不是调试模式,对于发布时间,您也可以设置发布

Path to change release to debug mode: Product(Menu) > Scheme > Edit Scheme > Build Configuration

并重置(菜单 > 硬件 > 清除所有内容和设置)您的模拟器,然后再次尝试 运行 并按 ⌘ + d 它会起作用。

希望对您有所帮助!

只需从 xcode 重新启动模拟器即可。