2016-05-02 151 views
0

,當我在無法運行吊艙安裝命令

$ pod install 
在終端

型我得到這個錯誤:

[!] Unable to find a specification for SFFocusViewLayout (~> 3.0)

[!] CocoaPods was not able to update the master repo. If this is an unexpected

issue and persists you can inspect it running `pod repo update --verbose

這是我podfile:

# Uncomment this line to define a global platform for your project 
# platform :ios, "8.0" 
# Uncomment this line if you're using Swift 
use_frameworks! 
target "vid starter" do 
pod "SFFocusViewLayout", "~> 3.0" 
end 

target "vid starterTests" do 

end 

有什麼錯誤?

+1

請幫助我! –

回答

2

一個暗示是要做的錯誤建議:pod repo update --verbose,看看它告訴你什麼信息。

另一方面,Cocoapods,ruby 2.3和OS X El Capitan似乎都有問題。

如果你已經通過gem安裝了Cocoapods,你可以卸載它並通過自制軟件重新安裝。這固定它對於我來說,這顯然是因爲自制軟件不紅寶石2.3使用...

  • sudo gem uninstall cocoapods

  • brew install cocoapods

我希望這有助於。

+0

請喜歡我的問題! :) –

+0

它不能識別命令 –

+0

正確的命令是'brew install cocoapods'不是'homebrew install cocoadpods' 但是,這可能不會解決問題。 – jmknoll