简体   繁体   English

无法通过 Cocoapods 安装 RealmSwift

[英]Unable to install RealmSwift via Cocoapods

i'm at OSX 10.11.2, Cocoapod 0.39.0, and I'm trying to install RealmSwift on my app.我在 OSX 10.11.2,Cocoapod 0.39.0,我正在尝试在我的应用程序上安装 RealmSwift。 However this error occurs:但是会出现这个错误:

Analyzing dependencies
[!] Unable to find a specification for `RealmSwift`

Here's my Podfile by the way:顺便说一下,这是我的 Podfile:

platform :ios, '8.0'
use_frameworks!

target 'RealmApp' do
 pod 'RealmSwift'
end

Thanks for your help!谢谢你的帮助!

Got it working!搞定了! I had to specify another source since it can't find it under Cocoapod.我不得不指定另一个来源,因为它在 Cocoapod 下找不到它。

Here are the changes I made:以下是我所做的更改:

platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
    pod 'Realm', :git => 'http://github.com/realm/realm-cocoa.git', :branch => 'swift-2.0'
    pod 'RealmSwift', :git => 'http://github.com/realm/realm-cocoa.git', :branch => 'swift-2.0'
end

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM