美文网首页ARN-MJ
react native ios 真机调试

react native ios 真机调试

作者: will666 | 来源:发表于2018-06-05 17:02 被阅读99次

RCTWebSocketExecutor.m文件修改 localhost 为react-native 的 server 的ip------本机 ip 地址(确保手机能连到本机春地址)


image.png

iOS 项目加载资源包为远程资源(本机ip react-native服务提供的资源包)


image.png

运行程序

摇一摇

选择remote js debugging
然后浏览器输入 http://localhost:8081/debugger-ui/ 地址 (官网说的),但是我得输入ip 才可以。

然后就可以在 console 看日志了

相关文章

网友评论

    本文标题:react native ios 真机调试

    本文链接:https://www.haomeiwen.com/subject/idkmsftx.html