我正在使用Xcode 8.3.3。'pod install'卡在'Receiving Objects'中
我正在嘗試安裝IOS的推送通知的firebase pod,並且無法通過'pod install'命令。 「接收對象」陷入了 - 看起來像 - 隨機百分比。
這是終端輸出的樣子:
Mac-Admin:MKR Medwe$ pod install --verbose
Preparing
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
Cloning into 'master'...
remote: Counting objects: 1447009, done.
remote: Compressing objects: 100% (315/315), done.
Receiving objects: 12% (183211/1447009), 36.09 MiB | 2.11 MiB/s
我試圖取消並重新啓動,但是這並沒有幫助。隨着誤差所暗示的,我試圖手動添加有問題的「主」源
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`.
(/usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
Cloning into 'master'...
remote: Counting objects: 1447009, done.
remote: Compressing objects: 100% (315/315), done.
error: RPC failed; curl 56 SSLRead() return error -9806.11 MiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
)
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
:
等待大約30分鐘後,我收到此錯誤。但是我仍然遇到和以前一樣的問題。約20-30分鐘後也出現同樣的錯誤。
[編輯] 這是我的Podfile:
platform :ios, '10.3'
target 'MKR' do
use_frameworks!
pod 'Firebase/Core'
pod 'Firebase/Messaging'
target 'MKRTests' do
inherit! :search_paths
end
target 'MKRUITests' do
inherit! :search_paths
end
end
安裝你能告訴你的'Podfile'?你有'source'https:// github.com/CocoaPods/Specs.git''作爲第一行嗎?此外,爲了以防萬一 - 當您通過瀏覽器訪問github時,您的互聯網連接是否穩定? – Losiowaty
查看https://stackoverflow.com/questions/26197171/git-clone-repository-error-rpc-failed-result-56-http-code-200 –
@Losiowaty我已經將它添加到問題中。雖然我沒有看到pod文件如何影響手動方法? – Medwe