急 pod install SSL certificate problem 。

发布于 2022-09-04 14:58:52 字数 2065 浏览 15 评论 0

今天尝试了一下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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偏爱你一生 2022-09-11 14:58:52

echo insecure >> ~/.curlrc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文