weexteam / article

This repos is a third party collection, and is not developed nor maintained by Apache Weex.
1.22k stars 141 forks source link

ios sdk #163

Open hechengloong opened 6 years ago

hechengloong commented 6 years ago

ios SDK升级到0.13.0以后 运行程序就会报错 我们项目是从weex0.3.0的版本就开始用,当时还不支持cocoapods 所以只能在本地通过 pod 'WeexSDK', :path=>'./sdk/' 引用 而且我们还在原来的SDK基础上做了一些改动(例如text选中动画效果等...),所以需要用到SDK中的源文件,现在直接使用cocoapods来引用的时候开放出来的头文件中没有我们进行修改的头文件.在0.12.0版本以前我们还是将SDK文件下载到本地 然后引入到工程来使用,但是在0.13.0开始,引入SDK后就出现各种错误 appdelegate引入代码如下

 WX_BaseViewController *weexVC = [[WX_BaseViewController alloc] initWithWeFileName:kWeex_home];
    UINavigationController *guidePageNC = [[UINavigationController alloc] initWithRootViewController:weexVC];