【问题标题】:Pod install command returns the error in cocoapod1.0.0Pod install 命令返回 cocoapod1.0.0 中的错误
【发布时间】:2016-06-07 12:10:52
【问题描述】:

我将 cococapod 更新到 1.0.0 版。我运行命令 Pod install ,但我立即收到错误

You have either:
 * out-of-date source repos which you can update with `pod repo update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

我的 pod 文件包含如下数据

use_frameworks!

def myPods

    pod 'SDWebImage'
    pod 'Fabric'
    pod 'Crashlytics'
    pod 'MBProgressHUD'

end

target 'APP_DEV' do
    myPods
end

target ‘APPTests' do
    myPods
end

target 'APPUITests' do
    myPods
end

如何解决这个问题?请帮帮我

【问题讨论】:

  • 请确保您的 Podfile 有针对特定 pod 的正确命令,当我在命令中出错时会发生这种情况

标签: ios iphone git terminal cocoapods


【解决方案1】:

照他说的做:

  • 检查您的 Pod 名称和版本是否正确。
  • 确保您的 Podfile 在顶部包含源代码 -> source 'https://github.com/CocoaPods/Specs.git'
  • 运行pod repo update

Podfile

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

def myPods

    pod 'SDWebImage'
    pod 'Fabric'
    pod 'Crashlytics'
    pod 'MBProgressHUD'

end

target 'APP_DEV' do
    myPods
end

target ‘APPTests' do
    myPods
end

target 'APPUITests' do
    myPods
end

【讨论】:

  • 我试过了。但我收到了这样的消息。正在更新规范 repo mastermaster 规范 repo 执行深度提取以提高未来性能..它没有响应..跨度>
  • 这很奇怪,因为它今天对我们有用。你能把你的 Podfile 添加到你的问题中吗,也许那里有一个错误。
  • 我用 podfile 编辑了我的问题,请仔细阅读。
  • 我相信您需要顶部的来源。我会用你的 podfile 应该是什么样子来更新我的答案
猜你喜欢
  • 2014-04-07
  • 2014-01-23
  • 2012-12-21
  • 2022-12-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多