【问题标题】:CocoaPods - Unable to find a specification for `MobileCenter`CocoaPods - 找不到“MobileCenter”的规范
【发布时间】:2016-11-24 11:28:56
【问题描述】:

无法使用 CocoaPods 添加 MobileCenter。 CocoaPods 无法找到 MobileCenter 的规范。

Podfile

platform :ios, '8.0'

target 'VisualStudioMobileCenterDemo' do
    pod 'MobileCenter'
end

错误

【问题讨论】:

标签: ios cocoapods mobile-center visual-studio-app-center


【解决方案1】:

如果您使用 Cocoapods 在您的应用中安装 Mobile Center 并遇到错误消息 - 无法找到 MobileCenter 的规范,请运行

$ pod repo update

在您的终端中。它将为您同步最新的 podspec 文件。那就试试吧

$ pod install

应该在您的应用中安装 Mobile Center 模块。

【讨论】:

  • 我不确定我是否理解您建议的 Podfile 如何帮助解决本地 pod 存储库不是最新的问题?这与原始问题有什么关系?
  • @LukasSpieß 更新了!!我的错。我在想一些不同的东西:(。
猜你喜欢
  • 1970-01-01
  • 2017-02-27
  • 2017-03-19
  • 1970-01-01
  • 2014-11-12
  • 1970-01-01
  • 2018-05-26
  • 1970-01-01
  • 2014-03-18
相关资源
最近更新 更多