问题一
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
- podfile文件中指定source源为master:
source 'https://github.com/CocoaPods/Specs.git'
- 使用查看 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
- 使用 pod repo remove trunk 删除CDN源
执行上面三步后请pod操作测试