2017-08-05 625 views
0

我正在使用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 
+0

安裝你能告訴你的'Podfile'?你有'source'https:// github.com/CocoaPods/Specs.git''作爲第一行嗎?此外,爲了以防萬一 - 當您通過瀏覽器訪問github時,您的互聯網連接是否穩定? – Losiowaty

+0

查看https://stackoverflow.com/questions/26197171/git-clone-repository-error-rpc-failed-result-56-http-code-200 –

+0

@Losiowaty我已經將它添加到問題中。雖然我沒有看到pod文件如何影響手動方法? – Medwe

回答

1

可悲的是,我不能讓可可豆莢的工作方式。但手動安裝框架爲我工作。

由於火力地堡頁面上的解釋是有點兒馬虎,我靠這個博客帖子:http://www.mokacoding.com/blog/setting-up-firebase-without-cocoapods/

的職位提供了一個相當複雜的解釋!它不能解決git/cocoa pod問題,但它確實解決了最初的問題。

0

嘗試通過Cocoapods App

Have easy access to running pod install and pod update on your projects. It also supports running every CocoaPods command via a hosted ruby environment.

+0

漂亮的應用程序,但它也卡在「接收對象」。問題是由Github服務器引起的,這些服務器對cocoapods Sepcs repo應用帶寬/ CPU限制。 –