问题收录

问题一

fatal: unable to access 'https://chromium.googlesource.com/webm/libwebp/

Finder -> 前往文件夹 (⇧⌘G) -> ~/.cocoapods/repos/master/Specs/1/9/2/libwebp

文件如下

问题二

ERROR: While executing gem … (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources

which ruby
cd ~
./configure  --with-openssl-dir=/usr/local/ssl

问题三

You appear to have CocoaPods installed but it is not working.
This can happen if the version of Ruby that CocoaPods was installed with
is different from the one being used to invoke it.
This can usually be fixed by re-installing CocoaPods. For more info, see
https://github.com/flutter/flutter/issues/14293.
To re-install CocoaPods, run:
sudo gem install cocoapods

$ whoami
xxxx
$ sudo chown -R xxxx /opt/flutter
// 升级brew
brew update
// ruby升级2.4.0
rvm install 2.4

问题四

[!] CDN: trunk Repo update failed - 71 error(s):
CDN: trunk URL couldn’t be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/d/a/2/Alamofire/1.1.3/Alamofire.podspec.json Response: Couldn’t connect to server

  1. podfile文件中指定source源为master:
source 'https://github.com/CocoaPods/Specs.git'
  1. 使用查看 pod repo list 查看
$ pod repo list

master
- Type: git (master)
- URL:  https://github.com/CocoaPods/Specs.git
- Path: /Users/jiaming/.cocoapods/repos/master

trunk
- Type: CDN
- URL:  https://cdn.cocoapods.org/
- Path: /Users/jiaming/.cocoapods/repos/trunk

  1. 使用 pod repo remove trunk 删除CDN源

执行上面三步后请pod操作测试

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值