Weex开发技巧

xcode10运行weex网易严选项目遇到的问题

2019-03-15  本文已影响0人  阿空阿空

!!!!发现当依赖找不到时,请重启xcode,就好了。

'WeexSDK/WXAnalyzerProtocol.h' file not found
以及
[SDWebImageManager sharedManager]
等等已经忘记了的问题

最后我将podfile改成了这样,解决了。

source 'git@github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
#inhibit_all_warnings!

def common
    pod 'WeexSDK'
    pod 'Weexplugin', :path=>'./Weexplugin/'
    pod 'WXDevtool', '0.15.3', :configurations => ['Debug']
    pod 'SDWebImage','3.7.5'
    pod 'SocketRocket'
    pod 'BindingX'
end

target 'WeexDemo' do
    common
end

target 'WeexUITestDemo' do
    common
end

好不容易启动后,又发现打开app直接白屏,并且报错 ReferenceError: Can't find variable: Vue
最终发现前人踩过这个坑
Can't find variable: Vue Vue打包的JS如何在IOS加载
成功解决,感动。
最后,大家不要升级xcode10,我说完了。

上一篇 下一篇

猜你喜欢

热点阅读