[英]How to debug in iOS real device on React Native project?
I'm making react-native project, it almost done so I am trying to test in real iOS device. 我正在做反应原生项目,它差不多完成了我试图在真正的iOS设备上测试。 Because I heard that
push notification
is only working in real device. 因为我听说
push notification
仅适用于真实设备。
Okay, when I test it in Simulator, I can launch debugger through Cmd+R -> Turn on debugger
, but How about real device? 好的,当我在Simulator中测试时,我可以通过
Cmd+R -> Turn on debugger
启动调试器Cmd+R -> Turn on debugger
,但实际设备怎么样?
Can I check console.log
in real iOS device? 我可以在真实的iOS设备上查看
console.log
吗?
摇动设备(调出与cmd+D
相同的菜单),然后debug JS remotely
It's always a good idea to test your app on an actual device before releasing it to your users. 在将应用程序发布给用户之前,最好在实际设备上测试您的应用程序。 This document will guide you through the necessary steps to run your React Native app on a device.
本文档将指导您完成在设备上运行React Native应用程序的必要步骤。
https://facebook.github.io/react-native/docs/running-on-device.html https://facebook.github.io/react-native/docs/running-on-device.html
Hope this helps! 希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.