Weex框架启动踩坑记录
坑1
在mac系统上:
npm install cocoapods
cd ~
mkdir .cocoapods
cd .cocoapods
mkdir repos
mkdir repos/master
cd repos/master
git clone https://github.com/CocoaPods/Specs.git
此处原本可以直接pod setup,但是在cocoapods1.8之后取消了master这个东西,所以需要自己创建master路径然后从git上clone代码(非常慢)。
坑2
从git上clone代码时,需要注意,可能会因为curl的postBuffer默认值太小而报错,需要git config --global http.postBuffer 524288000调整其大小。使用码云更快一些https://gitee.com/mirrors/CocoaPods-Specs。
大坑3
启动weex的android,先用weex platform add android,添加android部分,然后使用weex run android运行,运行时遇到的问题:
Exception in thread "main" java.net.SocketException: Connection r