我想问你一个问题,这个问题花了我几个星期的时间来解决,但我无法弄清楚。我正在尝试在我的项目中安装Firebase3。在我命中后#34; pod install"它开始安装,但最后它给我以下错误。
> [!] Unable to add a source with url
> `https://github.com/CocoaPods/Specs.git` named `master`. You can try
> adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
然后我尝试去〜/ .cocoapods并直接克隆链接
git clone https://github.com/CocoaPods/Specs.git master
我遇到了这个错误
> remote: Counting objects: 733146, done. remote: Compressing objects:
> 100% (5/5), done. error: RPC failed; curl 56 SSLRead() return error
> -9806.00 KiB/s fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
如果你能帮忙解决这个问题,我将非常感谢:)
答案 0 :(得分:0)
> # Uncomment this line to define a global platform for your project platform :ios, '9.0'
>
> target 'cocoapodsTesting' do pod ‘Firebase’ use_frameworks!
>
> # Pods for cocoapodsTesting
>
> target 'cocoapodsTestingTests' do
> inherit! :search_paths
> # Pods for testing end
>
> target 'cocoapodsTestingUITests' do
> inherit! :search_paths
> # Pods for testing end
>
> end
答案 1 :(得分:0)
增加HTTP缓冲区//加倍大小
git config http.postBuffer 524288000
git config --global user.email "youremail@xxx.xxx"
然后尝试
pod setup
或pod install