急 pod install SSL certificate problem 。
今天尝试了一下weexpack 工具,生成了一个test项目
weexpack create test
npm install
weexpack platform add ios
weexpack run ios
然后就报错了
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/executable.rb:89: warning: Insecure world writable dir /Users/freeman/sh in PATH, mode 040777
Analyzing dependencies
Fetching podspec for `Weexplugin` from `./Weexplugin/`
Downloading dependencies
Installing ATSDK-Weex (0.0.1)
Installing SDWebImage (3.7.5)
Installing SocketRocket (0.4.2)
Installing WXDevtool (0.9.5)
Installing WeexSDK (0.10.1)
[!] Error installing WeexSDK
[!] /Applications/XAMPP/bin/curl -f -L -o /var/folders/73/qz3qkw8n2pj61htppvtfjvxc0000gn/T/d20170309-3013-5wjmge/file.zip https://gw.alicdn.com/bao/uploaded/LB1kNzkPFXXXXb6XXXXXXXXXXXX.zip --create-dirs --netrc-optional
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem: certificate has expired
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
尝试了如下方式解决
下载证书 https://curl.haxx.se/docs/cae...
被动更新证书 https://blog.digicert.com/exp...
更换了pod的源为淘宝的,问题依旧
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
echo insecure >> ~/.curlrc