简体   繁体   English

如何在React Native项目的iOS真实设备中调试?

[英]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.

相关问题 如何在 iOS 上连接到真实设备上的本地主机? - How to connect to localhost on a real device in react native on iOS? 如何在真实设备上捆绑和部署React-Native iOS应用 - How to bundle and deploy React-Native iOS app on real device React-Native iOS 热重载和调试模式在真实设备中不起作用 - React-Native iOS hot reloading and debug mode not working in real device React Native Project 使用 Xcode 运行真实设备 - React Native Project Run Real Device with Xcode 当React Native应用未在iOS设备上启动时如何调试 - how to debug when react native app doesnt start on ios device 真正的IOS设备不会发出网络请求-React Native - Real IOS Device will not make network requests - React Native React Native-iOS Real Device-套接字IO Web套接字不起作用 - React Native - iOS Real Device - Socket IO Web Sockets not Working 仅在 Xcode 13.2.1 真实设备上反应本机 IOS 应用程序崩溃 - React native IOS app crashing on Xcode 13.2.1 real device only React Native Button 绝对位置不适用于真正的 iOS 特定设备 - React Native Button absolute position not working on real iOS specific device React Native:我可以在iOS模拟器上运行应用程序,但不能在真实设备上运行 - React native: I can run the application on iOS simulator but not on real device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM