2015-10-14 69 views
1

我試圖使用領域與雨燕2.0 我Podfile很簡單:爲什麼不能訪問的CocoaPods RealmSwift

source 'https://github.com/CocoaPods/Specs.git' 

pod 'AWSS3', '~> 2.2.0' 

# Realm Frameworks 
use_frameworks! 
pod 'RealmSwift', :git => 'https://github.com/realm/realm-cocoa.git', :branch => 'swift-2.0' 

但是我卻越來越

[!] Unable to satisfy the following requirements: 

- `RealmSwift (from `https://github.com/realm/realm-cocoa.git`, branch `swift-2.0`)` required by `Podfile` 

的Podfile看起來好形成給我。我會很感激任何幫助。

+0

你在其他項目中使用過Realm Frameworks嗎?我之前有過這個問題(與另一個Pod有關),事實證明這是我嘗試使用的Pod,而不是我的Podfile。 – pob21

+0

我剛試過你的Podfile,安裝時沒有問題。除了您發佈的內容,Podfile中是否還有其他內容? – joern

+0

@ joem號就是這樣。我錯誤地發佈的唯一的東西是'源'https://github.com/CocoaPods/Specs.git''應該是代碼格式。 – petegrif

回答

1

swift-2.0分支已經被合併到主在幾個星期前。自Swift 2正式發佈以來。所以如果你使用最新的工具鏈,你不再需要指定swift-2.0分支。你可以寫pod 'RealmSwift'

source 'https://github.com/CocoaPods/Specs.git' 
use_frameworks! 

pod 'AWSS3', '~> 2.2.0' 
pod 'RealmSwift' 
相關問題