2015-10-14 140 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' 
相关问题