【问题标题】:Cocoapods pod file install not working "Unable to find a specification for `RealmSwift (~> 0.97)`" swiftCocoapods pod 文件安装不起作用“无法找到 `RealmSwift (~> 0.97)` 的规范” swift
【发布时间】:2016-01-30 03:07:26
【问题描述】:

我正在尝试快速安装 Realm,期望终端不断给我这个错误:Unable to find a specification for RealmSwift (~> 0.97)。我的 pod 文件完全按照他们的建议进行了布局。这是我的 pod 文件:

target 'AppName' do
use_frameworks!
pod 'RealmSwift', '~> 0.97'

end

target 'AppName Tests' do
use_frameworks!
pod 'RealmSwift', '~> 0.97'

end

target 'AppName UITests' do

end

target 'AppName Keyboatd' do

end

target 'AppName Keyboard' do

end

【问题讨论】:

    标签: swift cocoapods realm


    【解决方案1】:

    我刚刚使用 Realm Objective-C 进行了尝试,它对我来说效果很好。这很奇怪。

    可能由于版本实际上称为“0.97.0”,因此可能需要包含那个额外的“.0”。

    或者,是否完全有必要在其中包含版本说明符?您可以不使用它,您仍然会获得最新版本的 Realm(0.97.1 已于几天前发布!)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-14
      • 2014-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-30
      • 2014-06-09
      • 1970-01-01
      相关资源
      最近更新 更多