Coder Social home page Coder Social logo

Comments (8)

Juice007 avatar Juice007 commented on June 10, 2024 2

终于搞定了 应该算半个版本间兼容问题吧。
当我的WeexSDK是0.16.2版本,WXDevTool是0.15.3时(都是截止到今天的最新版),且都用pod导入。运行时会报一个"_OBJC_CLASS_$_SRWebSocket", referenced from:错误,因为0.16.2版本的WeexSDK已经移除了SocketRocket库,而0.15.3版本的WXDevTool的静态库代码里还用了SocketRocket库,所以解决这个错误还需要自己再pod一下SocketRocket库。
其次就是使用了,记得在weex框架初始化前调用

//    [WXDevTool setDebug:YES];  这句话一定不能写,否则weex页面加载不出来,亲测
    [WXDevTool launchDevToolDebugWithUrl:@"ws://10.0.1.4:8088/debugProxy/native"];

好啦~ 总算可以开启debug大法了~!
话说这个工具也该随着WeexSDK的更新而更新一下了喂~

from devtool-ios-for-apache-weex.

Juice007 avatar Juice007 commented on June 10, 2024

这个怎么解决呢 记得之前集成的时候还能够成功 现在再集成怎么就不行了呢

from devtool-ios-for-apache-weex.

Juice007 avatar Juice007 commented on June 10, 2024

怀疑有可能是版本之间的兼容问题?

from devtool-ios-for-apache-weex.

cijianzy avatar cijianzy commented on June 10, 2024

谢谢老哥踩坑

from devtool-ios-for-apache-weex.

Juice007 avatar Juice007 commented on June 10, 2024

@fishycx 版本号写错了 已更正

from devtool-ios-for-apache-weex.

fishycx avatar fishycx commented on June 10, 2024

我是通过导入源码的方式成功的

from devtool-ios-for-apache-weex.

willing8310 avatar willing8310 commented on June 10, 2024

@Juice007 你不设置[WXDevTool setDebug:YES];那这个功能就不完整了。
你可以导入源码,然后里面有几个方法没实现,你实现一下空方法就行,可以参考一下 weexteam/article#177

from devtool-ios-for-apache-weex.

ifelseboyxx avatar ifelseboyxx commented on June 10, 2024

@Juice007 页面是加载出来,然后呢? 可以实时刷新吗?

目前我使用官方 WeexPlayground 扫码可以实时调试 weex 页面,.vue 文件修改下保存,WeexPlayground 上的页面也是同步实时刷新的。
现在我自己的客户端集成了 weex,我想自己的 app 也能像 WeexPlayground 一样实时调试,.vue 文件修改下保存,也能同步刷新。主要是我实现的功能里面有很多自己的 module, 使用 WeexPlayground 扫描调试完全不能满足需求,目前只能把 jsbundle 文件拖到我自己项目本地里,来调试,感觉很蠢很麻烦,也不能实时刷新调试。

from devtool-ios-for-apache-weex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.