Comments (8)
终于搞定了 应该算半个版本间兼容问题吧。
当我的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.
这个怎么解决呢 记得之前集成的时候还能够成功 现在再集成怎么就不行了呢
from devtool-ios-for-apache-weex.
怀疑有可能是版本之间的兼容问题?
from devtool-ios-for-apache-weex.
谢谢老哥踩坑
from devtool-ios-for-apache-weex.
@fishycx 版本号写错了 已更正
from devtool-ios-for-apache-weex.
我是通过导入源码的方式成功的
from devtool-ios-for-apache-weex.
@Juice007 你不设置[WXDevTool setDebug:YES];那这个功能就不完整了。
你可以导入源码,然后里面有几个方法没实现,你实现一下空方法就行,可以参考一下 weexteam/article#177
from devtool-ios-for-apache-weex.
@Juice007 页面是加载出来,然后呢? 可以实时刷新吗?
目前我使用官方 WeexPlayground 扫码可以实时调试 weex 页面,.vue 文件修改下保存,WeexPlayground 上的页面也是同步实时刷新的。
现在我自己的客户端集成了 weex,我想自己的 app 也能像 WeexPlayground 一样实时调试,.vue 文件修改下保存,也能同步刷新。主要是我实现的功能里面有很多自己的 module, 使用 WeexPlayground 扫描调试完全不能满足需求,目前只能把 jsbundle 文件拖到我自己项目本地里,来调试,感觉很蠢很麻烦,也不能实时刷新调试。
from devtool-ios-for-apache-weex.
Related Issues (20)
- 文档太旧了,能不能更新个最新的 HOT 1
- 你们更新个文档还可行啊 0.15根本不能用 HOT 1
- WXDevTool集成之后,页面变空白 HOT 4
- 跟flipboard/flex开源库冲突 HOT 3
- iOS 顶部的weex MNT 如何关闭? HOT 3
- 怎么关闭MNT? HOT 1
- 集成0.15.3b报错Undefined symbols for architecture arm64
- <Weex>[error]WXMonitor.m:221, [WX_KEY_EXCEPTION_SDK_INIT_JSFM_INIT_FAILED] script don't exist:(null)
- WXDevtool会在启动的Alert Controller上加载调试工具的UI,关闭alert后会crash
- WXBridgeManager crash && WXSDKInstance crash
- chrome 里面,打断点调试,分分钟卡死啊 HOT 1
- 支持使用自己的 app 实时调试? HOT 2
- bridging-header.h: Missing submodule 'WXDevtool.WXDevTool'
- 集成 WXDevtool 0.17.1 运行崩溃 HOT 3
- 打开JS Debug开关时,iOS 崩溃 HOT 1
- weex 新建一个项目,debug报错
- 开启debug后原生端通过 registerService 注入的脚本如何调试? HOT 1
- 集成iOS编译报错 HOT 1
- 同样的stream代码,对返回数据进行sort排序时发现,同样代码同样数据,weex compile后的js部署到IOS上,typeof数据类型是string,扫码提示数据类型是object HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devtool-ios-for-apache-weex.