2016-06-07 75 views
0

我更新了cococapod到版本1.0.0。我運行命令吊艙安裝,但我立即得到了錯誤,如Pod安裝命令返回cocoapod1.0.0中的錯誤

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. 

我莢文件包含數據如下

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 

如何解決這個問題?請幫我

+0

請確保您的Podfile有特定吊艙正確的命令,這當我在命令中犯錯時發生 – swiftBoy

回答

0

做,因爲它說:

  • 檢查波德名稱和版本是正確的。
  • 確保您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 
+0

我試過了。但是我得到了類似的消息。更新了spec repo'master' 執行了'master'的深層獲取規格回購改善未來的表現..它不迴應.. – IKKA

+0

這很奇怪,因爲它今天爲我們工作。你可以將你的Podfile添加到你的問題中,也許那裏有錯誤。 – Hodson

+0

我用podfile編輯了我的問題,請仔細閱讀。 – IKKA