[!] Error installing YYKit
[!] /usr/bin/git clone https://github.com/ibireme/YYKit.git /var/folders/np/k8vh2rqj7tl9156czd7z88wm0000gn/T/d20180809-24018-hffxmu --template= --single-branch --depth 1 --branch 1.0.9
Cloning into '/var/folders/np/k8vh2rqj7tl9156czd7z88wm0000gn/T/d20180809-24018-hffxmu'...
fatal: unable to access 'https://github.com/ibireme/YYKit.git/': Operation timed out after 300026 milliseconds with 0 out of 0 bytes received
解决方案:
方案1:
原文: https://www.jianshu.com/p/34204fd27514
修改库中的source.git的值
"source": {
"git": "https://chromium.googlesource.com/webm/libwebp",
"tag": "v0.6.0"
}
无法链接 git : https://chromium.googlesource.com/webm/libwebp
修改为:https://github.com/webmproject/libwebp.git
其他库也类似,只需要找到github 库文件的地方即可!
方案2:
确保xcode 是否正在运行或者打开状态,请关闭xcode。然后再执行pod update命令
方案3:
打印当前xcode的路径:
xcode-select --print-path
例如,输出xcode路径:/Applications/Xcode.app/Contents/Developer
输入一下命令:(如果有多个xcode版本路径 请选择其中一个)
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
如果您遇到下面的错误:
Error loading the plugin with path \\'/Library/Ruby/Gems/2.3.0/gems/cocoapods-plugins-0.3.1/lib/cocoapods_plugin.rb\\'.Errno::EACCES - Permission denied - /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-14
运行命令$ gem update --system即可
原文:https://blog.csdn.net/qq_32873193/article/details/79849353
网友评论